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)) {
|
if (empty($output)) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
$output = preg_replace('~<br[^>]+>~', "\n", $output);
|
$output = preg_replace('~<br[^>]+>~', "\n", $output);
|
||||||
if (preg_match('~<\w+[^>^\\\]{,60}>~', $output)) {
|
if (preg_match('~<\w+[^>^\\\]{0,60}>~', $output)) {
|
||||||
// HTML
|
// HTML
|
||||||
$output = preg_replace('~<table~', '<table style="font-size: 0.75em"',
|
$output = preg_replace('~<table~', '<table style="font-size: 0.75em"',
|
||||||
$this->getPurifier()->purify($output)
|
$this->getPurifier()->purify($output)
|
||||||
|
|
Loading…
Reference in New Issue