mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-03 05:11:52 +00:00
Add test case for removing empty list items.
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
This commit is contained in:
parent
74f123a84c
commit
9d2d75d8bc
@ -78,6 +78,11 @@ class HTMLPurifier_Injector_RemoveEmptyTest extends HTMLPurifier_InjectorHarness
|
|||||||
$this->assertResult('<b> </b>', '');
|
$this->assertResult('<b> </b>', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testRemoveLi()
|
||||||
|
{
|
||||||
|
$this->assertResult("<ul><li>\n\n\n</li></ul>", '');
|
||||||
|
}
|
||||||
|
|
||||||
public function testDontRemoveNbsp()
|
public function testDontRemoveNbsp()
|
||||||
{
|
{
|
||||||
$this->config->set('AutoFormat.RemoveEmpty.RemoveNbsp', true);
|
$this->config->set('AutoFormat.RemoveEmpty.RemoveNbsp', true);
|
||||||
|
Loading…
Reference in New Issue
Block a user