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:
@@ -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
|
||||
|
Reference in New Issue
Block a user