Pressbooks\Modules\Export\Mpdf\Pdf::getFilteredContent PHP Method

getFilteredContent() public method

Cleans up html
public getFilteredContent ( string $content ) : string
$content string
return string
    function getFilteredContent($content)
    {
        $filtered = apply_filters('the_content', $content);
        $filtered = $this->fixAnnoyingCharacters($filtered);
        $config = array('valid_xhtml' => 1, 'no_deprecated_attr' => 2, 'unique_ids' => 'fixme-', 'hook' => '\\Pressbooks\\Sanitize\\html5_to_xhtml11', 'tidy' => -1);
        return htmLawed($filtered, $config);
    }