obj = new HTMLPurifier_Strategy_MakeWellFormed(); } function test() { $this->assertResult(''); $this->assertResult('This is bold text.'); $this->assertResult( 'Unclosed tag, gasp!', 'Unclosed tag, gasp!' ); $this->assertResult( 'Bold and italic?', 'Bold and italic?' ); $this->assertResult( 'Unused end tags... recycle!', 'Unused end tags... recycle!' ); $this->assertResult( '
', '
' ); $this->assertResult( '
', '
' ); // test automatic paragraph closing $this->assertResult( '

Paragraph 1

Paragraph 2', '

Paragraph 1

Paragraph 2

' ); $this->assertResult( '

Paragraphs

In

A

Div

', '

Paragraphs

In

A

Div

' ); // automatic list closing $this->assertResult( '
  1. Item 1
  2. Item 2
', '
  1. Item 1
  2. Item 2
' ); } } ?>