mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-22 08:21: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>', '');
|
||||
}
|
||||
|
||||
public function testRemoveLi()
|
||||
{
|
||||
$this->assertResult("<ul><li>\n\n\n</li></ul>", '');
|
||||
}
|
||||
|
||||
public function testDontRemoveNbsp()
|
||||
{
|
||||
$this->config->set('AutoFormat.RemoveEmpty.RemoveNbsp', true);
|
||||
|
Loading…
Reference in New Issue
Block a user