3 class HTMLPurifier_Strategy_RemoveForeignElements_TidyTest
4 extends HTMLPurifier_StrategyHarness
7 public function setUp()
10 $this->obj
= new HTMLPurifier_Strategy_RemoveForeignElements();
11 $this->config
->set('HTML.TidyLevel', 'heavy');
14 public function testCenterTransform()
17 '<center>Look I am Centered!</center>',
18 '<div style="text-align:center;">Look I am Centered!</div>'
22 public function testFontTransform()
25 '<font color="red" face="Arial" size="6">Big Warning!</font>',
26 '<span style="color:red;font-family:Arial;font-size:xx-large;">Big'.
31 public function testTransformToForbiddenElement()
33 $this->config
->set('HTML.Allowed', 'div');
35 '<font color="red" face="Arial" size="6">Big Warning!</font>',
40 public function testMenuTransform()
43 '<menu><li>Item 1</li></menu>',
44 '<ul><li>Item 1</li></ul>'