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

Use info_parent_def to get parent information, since it may not be present in info array.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
Edward Z. Yang
2013-05-21 17:19:59 -07:00
parent 19360ddb36
commit 0680832d41
3 changed files with 15 additions and 11 deletions

View File

@@ -510,6 +510,11 @@ Bar</div>",
$this->assertResult('<b>foobar</b>');
}
function testParentElement() {
$this->config->set('HTML.Allowed', 'p,ul,li');
$this->assertResult('Foo<ul><li>Bar</li></ul>', "<p>Foo</p>\n\n<ul><li>Bar</li></ul>");
}
}
// vim: et sw=4 sts=4