3 class HTMLPurifier_Strategy_RemoveForeignElements_TidyTest
4 extends HTMLPurifier_StrategyHarness
9 $this->obj
= new HTMLPurifier_Strategy_RemoveForeignElements();
10 $this->config
->set('HTML', 'TidyLevel', 'heavy');
13 function testCenterTransform() {
15 '<center>Look I am Centered!</center>',
16 '<div style="text-align:center;">Look I am Centered!</div>'
20 function testFontTransform() {
22 '<font color="red" face="Arial" size="6">Big Warning!</font>',
23 '<span style="color:red;font-family:Arial;font-size:xx-large;">Big'.
28 function testTransformToForbiddenElement() {
29 $this->config
->set('HTML', 'Allowed', 'div');
31 '<font color="red" face="Arial" size="6">Big Warning!</font>',
36 function testMenuTransform() {
38 '<menu><li>Item 1</li></menu>',
39 '<ul><li>Item 1</li></ul>'