|
|
@ -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();
|
|
|
|