mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-31 03:10:09 +02:00
Fix broken trusted comments functionality.
This fix is slightly hackish, as we simply treat comments as whitespace. This should largely be correct, and breaks no current test cases, although it could result in noncompliant behavior. Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
4
tests/HTMLPurifier/HTMLT/trusted-comments-table.htmlt
Normal file
4
tests/HTMLPurifier/HTMLT/trusted-comments-table.htmlt
Normal file
@@ -0,0 +1,4 @@
|
||||
--INI--
|
||||
HTML.Trusted = true
|
||||
--HTML--
|
||||
<table><!-- foo --><tr><td>Foo</td></tr></table>
|
Reference in New Issue
Block a user