protected function cleanup(&$source) { $tidy = new Tidy(); $tidy->parseString($source, array('drop-font-tags' => true, 'drop-proprietary-attributes' => true, 'hide-comments' => true, 'numeric-entities' => true, 'output-xhtml' => true, 'wrap' => 0, 'bare' => true, 'word-2000' => true, 'new-blocklevel-tags' => 'section nav article aside hgroup header footer figure figcaption ruby video audio canvas details datagrid summary menu', 'new-inline-tags' => 'time mark rt rp output progress meter', 'new-empty-tags' => 'wbr source keygen command'), 'utf8'); $source = $tidy->body()->value; }
protected function cleanup(&$source) { $tidy = new Tidy(); $tidy->parseString($source, array('drop-font-tags' => true, 'drop-proprietary-attributes' => true, 'hide-comments' => true, 'numeric-entities' => true, 'output-xhtml' => true, 'wrap' => 0), 'utf8'); $source = $tidy->body()->value; }