obj = new HTMLPurifier_Strategy_RemoveForeignElements();
$this->config->set('HTML.TidyLevel', 'heavy');
}
function testCenterTransform() {
$this->assertResult(
'
Look I am Centered!',
'Look I am Centered!
'
);
}
function testFontTransform() {
$this->assertResult(
'Big Warning!',
'Big'.
' Warning!'
);
}
function testTransformToForbiddenElement() {
$this->config->set('HTML.Allowed', 'div');
$this->assertResult(
'Big Warning!',
'Big Warning!'
);
}
function testMenuTransform() {
$this->assertResult(
'',
''
);
}
}
// vim: et sw=4 sts=4