mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 22:04:25 +02:00
Introduce class Icinga\Module\Monitoring\Web\Helper\PluginOutputPurifier
This commit is contained in:
parent
ce428cb77d
commit
42b685d336
@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
/* Icinga Web 2 | (c) 2018 Icinga Development Team | GPLv2+ */
|
||||||
|
|
||||||
|
namespace Icinga\Module\Monitoring\Web\Helper;
|
||||||
|
|
||||||
|
use Icinga\Web\Helper\HtmlPurifier;
|
||||||
|
|
||||||
|
class PluginOutputPurifier extends HtmlPurifier
|
||||||
|
{
|
||||||
|
protected function configure($config)
|
||||||
|
{
|
||||||
|
$config->set(
|
||||||
|
'HTML.Allowed',
|
||||||
|
'p,br,b,a[href|target],i,ul,ol,li,table,tr,th[colspan],td[colspan],div,*[class]'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user