Skip to content

Commit

Permalink
Add test case for removing empty list items.
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Z. Yang <[email protected]>
  • Loading branch information
ezyang committed Mar 8, 2017
1 parent 74f123a commit 9d2d75d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/HTMLPurifier/Injector/RemoveEmptyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ public function testRemoveNbspMix()
$this->assertResult('<b>&nbsp; &nbsp;</b>', '');
}

public function testRemoveLi()
{
$this->assertResult("<ul><li>\n\n\n</li></ul>", '');
}

public function testDontRemoveNbsp()
{
$this->config->set('AutoFormat.RemoveEmpty.RemoveNbsp', true);
Expand Down

0 comments on commit 9d2d75d

Please sign in to comment.