extractBody() public method

Takes a string of HTML (fragment or document) and returns the content
public extractBody ( $html )
Ejemplo n.º 1
0
 function assertExtractBody($text, $extract = true)
 {
     $lexer = new HTMLPurifier_Lexer();
     $result = $lexer->extractBody($text);
     if ($extract === true) {
         $extract = $text;
     }
     $this->assertIdentical($extract, $result);
 }