PressBooks\Modules\Import\Epub\Epub201::tidy PHP Метод

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

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, 'hook' => '\\Pressbooks\\Sanitize\\html5_to_xhtml11');
        return htmLawed($html, $config);
    }