obj = new HTMLPurifier_Strategy_RemoveForeignElements(); } function test() { $this->assertResult(''); $this->assertResult('This is bold text.'); $this->assertResult( 'BlingBong', 'BlingBong' ); $this->assertResult( '
  • Item 1
  • ', '' ); // 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 img tag $this->assertResult( '', '' ); } } ?>