mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-31 19:30:21 +02:00
Implement "carryover" functionality, requested by Kinderlehrer <bitweaver@7doves.com>
This commit is a limited implementation of the "active formatting elements" algorithm implemented in HTML5, which preserves certain formatting elements such as <a> and <b> when exiting or entering nodes. Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
5
tests/HTMLPurifier/HTMLT/inline-wraps-block.htmlt
Normal file
5
tests/HTMLPurifier/HTMLT/inline-wraps-block.htmlt
Normal file
@@ -0,0 +1,5 @@
|
||||
--HTML--
|
||||
<a href="foo.html"><h1>Foobar</h1></a>
|
||||
--EXPECT--
|
||||
<a href="foo.html"></a><h1><a href="foo.html">Foobar</a></h1><a href="foo.html"></a>
|
||||
--# vim: et sw=4 sts=4
|
Reference in New Issue
Block a user