MDL-58548 lib: Update htmlpurifier to the latest version.

This commit is contained in:
Adrian Greeve
2017-09-21 13:23:21 +08:00
parent 23ab0d7788
commit 247ff6bc2b
30 changed files with 575 additions and 115 deletions
@@ -0,0 +1,21 @@
<?php
/**
* Module adds the target-based noopener attribute transformation to a tags. It
* is enabled by HTML.TargetNoopener
*/
class HTMLPurifier_HTMLModule_TargetNoopener extends HTMLPurifier_HTMLModule
{
/**
* @type string
*/
public $name = 'TargetNoopener';
/**
* @param HTMLPurifier_Config $config
*/
public function setup($config) {
$a = $this->addBlankElement('a');
$a->attr_transform_post[] = new HTMLPurifier_AttrTransform_TargetNoopener();
}
}