Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function __construct() { |
||
31 | $config = HTMLPurifier_Config::createDefault(); |
||
32 | |||
33 | $config->set( 'HTML.Allowed', self::ALLOWED_HTML_TAGS ); |
||
34 | $config->set( 'Attr.AllowedFrameTargets', [ '_blank' ] ); // allow target="_blank" hrefs |
||
35 | |||
36 | $this->purifier = new HTMLPurifier( $config ); |
||
37 | } |
||
38 | |||
44 |