obj = new HTMLPurifier_Strategy_RemoveForeignElements();
}
function test() {
$this->assertResult('');
$this->assertResult('This is bold text.');
$this->assertResult(
'BlingBong',
'BlingBong'
);
$this->assertResult(
'
',
''
);
// test center transform
$this->assertResult(
'Look I am Centered!',
'Look I am Centered!
'
);
// test font transform
$this->assertResult(
'Big Warning!',
'Big'.
' Warning!'
);
// test removal of invalid img tag
$this->assertResult(
'',
''
);
// test preservation of valid img tag
$this->assertResult('');
}
}
?>