PluginOutput helper: use a regex to detect HTML in plugin output
fixes #10366
This commit is contained in:
parent
b63d2ad291
commit
bd02e5468c
|
@ -33,7 +33,7 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
$output = preg_replace('~<br[^>]*>~', "\n", $output);
|
$output = preg_replace('~<br[^>]*>~', "\n", $output);
|
||||||
if (strlen($output) > strlen(strip_tags($output))) {
|
if (preg_match('~<[^>]*["/\'][^>]*>~', $output)) {
|
||||||
// HTML
|
// HTML
|
||||||
$output = preg_replace(
|
$output = preg_replace(
|
||||||
'~<table~',
|
'~<table~',
|
||||||
|
|
Loading…
Reference in New Issue