pull/7342/head
Aleksander Machniak 5 years ago
parent bf34e8cf9c
commit b35b5a1a26

@ -598,7 +598,7 @@ class rcube_washtml
if (!$this->is_xml && class_exists('Masterminds\HTML5') if (!$this->is_xml && class_exists('Masterminds\HTML5')
// HTML5 parser is slow with content that contains a lot of tags // HTML5 parser is slow with content that contains a lot of tags
// disable it for such cases (https://github.com/Masterminds/html5-php/issues/181) // disable it for such cases (https://github.com/Masterminds/html5-php/issues/181)
&& substr_count($html, '<') > 10000 && substr_count($html, '<') < 10000
) { ) {
try { try {
$html5 = new Masterminds\HTML5(); $html5 = new Masterminds\HTML5();

Loading…
Cancel
Save