mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 08:51:53 +00:00
4e77a1adbd
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1013 48356398-32a2-884e-a903-53898d9a118a
36 lines
1023 B
PHP
36 lines
1023 B
PHP
<?php
|
|
|
|
require_once 'HTMLPurifier/AttrTransform/Lang.php';
|
|
|
|
/**
|
|
* Proprietary module that transforms XHTML 1.0 deprecated aspects into
|
|
* XHTML 1.1 compliant ones, when possible. For maximum effectiveness,
|
|
* HTMLPurifier_HTMLModule_TransformToStrict must also be loaded
|
|
* (otherwise, elements that were deprecated from Transitional to Strict
|
|
* will not be transformed).
|
|
*
|
|
* XHTML 1.1 compliant document are automatically XHTML 1.0 compliant too,
|
|
* although they may not be as friendly to legacy browsers.
|
|
*/
|
|
|
|
class HTMLPurifier_HTMLModule_TransformToXHTML11 extends HTMLPurifier_HTMLModule
|
|
{
|
|
|
|
var $name = 'TransformToXHTML11';
|
|
var $attr_collections = array(
|
|
'Lang' => array(
|
|
'lang' => false // remove it
|
|
)
|
|
);
|
|
|
|
var $info_attr_transform_post = array(
|
|
'lang' => false // remove it
|
|
);
|
|
|
|
function HTMLPurifier_HTMLModule_TransformToXHTML11() {
|
|
$this->info_attr_transform_pre['lang'] = new HTMLPurifier_AttrTransform_Lang();
|
|
}
|
|
|
|
}
|
|
|
|
?>
|