MDL-22537 new html purifier backported to stable, unfortunately PHP5 only
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
<?php
|
||||
|
||||
require_once 'HTMLPurifier/HTMLModule.php';
|
||||
|
||||
class HTMLPurifier_HTMLModule_XMLCommonAttributes extends HTMLPurifier_HTMLModule
|
||||
{
|
||||
var $name = 'XMLCommonAttributes';
|
||||
|
||||
var $attr_collections = array(
|
||||
public $name = 'XMLCommonAttributes';
|
||||
|
||||
public $attr_collections = array(
|
||||
/* moodle comment - xml:lang breaks our multilang
|
||||
'Lang' => array(
|
||||
'xml:lang' => 'LanguageCode',
|
||||
@@ -15,3 +13,4 @@ class HTMLPurifier_HTMLModule_XMLCommonAttributes extends HTMLPurifier_HTMLModul
|
||||
);
|
||||
}
|
||||
|
||||
// vim: et sw=4 sts=4
|
||||
|
||||
Reference in New Issue
Block a user