Pressbooks\Modules\Export\Epub\Epub201::tidy PHP Method

tidy() protected method

Tidy HTML
protected tidy ( string $html ) : string
$html string
return string
    protected function tidy($html)
    {
        // Make XHTML 1.1 strict using htmlLawed
        $config = array('valid_xhtml' => 1, 'no_deprecated_attr' => 2, 'unique_ids' => 'fixme-', 'deny_attribute' => 'itemscope,itemtype,itemref,itemprop', 'hook' => '\\Pressbooks\\Sanitize\\html5_to_xhtml11', 'tidy' => -1, 'comment' => 1);
        // Reset on each htmLawed invocation
        unset($GLOBALS['hl_Ids']);
        if (!empty($this->fixme)) {
            $GLOBALS['hl_Ids'] = $this->fixme;
        }
        return htmLawed($html, $config);
    }