mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
parent
aecfb2eb97
commit
9d2f0be24c
@ -27,13 +27,13 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
|
||||
'@@@@@@',
|
||||
);
|
||||
|
||||
public function pluginOutput($output)
|
||||
public function pluginOutput($output, $raw = false)
|
||||
{
|
||||
if (empty($output)) {
|
||||
return '';
|
||||
}
|
||||
$output = preg_replace('~<br[^>]+>~', "\n", $output);
|
||||
if (preg_match('~<\w+[^>^\\\]{,60}>~', $output)) {
|
||||
if (preg_match('~<\w+[^>^\\\]{0,60}>~', $output)) {
|
||||
// HTML
|
||||
$output = preg_replace('~<table~', '<table style="font-size: 0.75em"',
|
||||
$this->getPurifier()->purify($output)
|
||||
|
Loading…
x
Reference in New Issue
Block a user