obj = new HTMLPurifier_ChildDef_StrictBlockquote(); $this->assertResult(''); $this->assertResult('

Valid

'); $this->assertResult('
Still valid
'); $this->assertResult('Needs wrap', '

Needs wrap

'); $this->assertResult( 'Wrap'. '

Do not wrap

', '

Wrap

Do not wrap

' ); $this->assertResult( '

Do not

'.'Wrap', '

Do not

Wrap

' ); $this->assertResult( '
  • Not allowed
  • Paragraph.

    Hmm.

    ', '

    Not allowedParagraph.

    Hmm.

    ' ); $this->assertResult( $var = 'He said
    perhaps
    we should nuke them.', "

    $var

    " ); $this->assertResult( 'BarPeopleConniving.'. '

    Fools!

    ', '

    Bar'. 'PeopleConniving.

    Fools!

    ' ); $this->assertResult('Needs wrap', '
    Needs wrap
    ', array('HTML.BlockWrapper' => 'div')); $this->expectError('Cannot use non-block element as block wrapper.'); $this->assertResult('Needs wrap', '

    Needs wrap

    ', array('HTML.BlockWrapper' => 'dav')); } } ?>