1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-31 03:10:09 +02:00

[1.3.2] Added purifyArray(), which takes a list of HTML and purifies it all

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@615 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2006-12-20 23:51:09 +00:00
parent dcfd8f5641
commit b6e222cbc2
4 changed files with 33 additions and 2 deletions

View File

@@ -68,6 +68,21 @@ class HTMLPurifier_Test extends UnitTestCase
}
function test_purifyArray() {
$this->purifier = new HTMLPurifier();
$this->assertEqual(
$this->purifier->purifyArray(
array('Good', '<b>Sketchy', 'foo' => '<script>bad</script>')
),
array('Good', '<b>Sketchy</b>', 'foo' => 'bad')
);
$this->assertIsA($this->purifier->context, 'array');
}
}
?>