Pressbooks\Modules\Import\Ooxml\Docx::tidy PHP Метод

tidy() защищенный Метод

Compliance with XTHML standards, rid cruft generated by word processors
protected tidy ( string $html ) : string
$html string
Результат string
    protected function tidy($html)
    {
        // Reduce the vulnerability for scripting attacks
        // Make XHTML 1.1 strict using htmlLawed
        $config = array('safe' => 1, 'valid_xhtml' => 1, 'no_deprecated_attr' => 2, 'deny_attribute' => 'div -id', 'hook' => '\\Pressbooks\\Sanitize\\html5_to_xhtml11');
        return htmLawed($html, $config);
    }