PluginOutput: Adjust html detection regex again

This commit is contained in:
Johannes Meyer 2020-05-13 17:16:22 +02:00
parent 79343cef8b
commit 4aab354b7f

View File

@ -95,7 +95,7 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
if ($command !== null) {
$output = $this->hookRenderer->render($command, $output, ! $raw);
}
if (preg_match('~<[^>]*["/\'][^>]*>~', $output)) {
if (preg_match('~<\w+(?>\s\w+=[^>]*)?>~', $output)) {
// HTML
$output = preg_replace(
self::$htmlPatterns,