1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-31 19:30:21 +02:00

Turn on entity parsing for the Lexers. Add PureHTMLDefinition and define removeForeignElements.

git-svn-id: http://htmlpurifier.org/svnroot/html_purifier/trunk@31 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2006-04-16 03:00:05 +00:00
parent e7f5b1674d
commit c4b23cc775
5 changed files with 223 additions and 5 deletions

View File

@@ -107,7 +107,12 @@ class TestCase_HTML_Lexer extends UnitTestCase
$input[9] = '<b>';
$expect[9] = array(
new MF_Text('<b>')
new MF_Text('<b>')
);
$sax_expect[9] = array(
new MF_Text('<')
,new MF_Text('b')
,new MF_Text('>')
);
// however, we may want to change both styles
// into parsed: '<b>'. SAX has an option for this