1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-06 06:07:26 +02:00

[1.6.1] Fix broken configuration directive %Core.RemoveInvalidImg, also make basic demo operational out-of-the-box

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@999 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2007-04-30 00:53:13 +00:00
parent 114d6841ab
commit 968dfa2feb
4 changed files with 27 additions and 5 deletions

View File

@@ -51,6 +51,15 @@ class HTMLPurifier_Strategy_RemoveForeignElementsTest
// test preservation of valid img tag
$this->assertResult('<img src="foobar.gif" />');
// test preservation of invalid img tag when removal is disabled
$this->assertResult(
'<img />',
true,
array(
'Core.RemoveInvalidImg' => false
)
);
}
}