mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-10 07:38:41 +00:00
b81fb0af90
- Added LanguageCode to AttrTypes. We should prefer string representations of attribute definitions. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1040 48356398-32a2-884e-a903-53898d9a118a
33 lines
951 B
PHP
33 lines
951 B
PHP
<?php
|
|
|
|
require_once 'HTMLPurifier/HTMLModule.php';
|
|
require_once 'HTMLPurifier/AttrDef/HTML/LinkTypes.php';
|
|
|
|
/**
|
|
* XHTML 1.1 Hypertext Module, defines hypertext links. Core Module.
|
|
*/
|
|
class HTMLPurifier_HTMLModule_Hypertext extends HTMLPurifier_HTMLModule
|
|
{
|
|
|
|
var $name = 'Hypertext';
|
|
|
|
function HTMLPurifier_HTMLModule_Hypertext() {
|
|
$this->addElement(
|
|
'a', true, 'Inline', 'Inline', 'Common',
|
|
array(
|
|
// 'accesskey' => 'Character',
|
|
// 'charset' => 'Charset',
|
|
'href' => 'URI',
|
|
// 'hreflang' => 'LanguageCode',
|
|
'rel' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rel'),
|
|
'rev' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rev'),
|
|
// 'tabindex' => 'Number',
|
|
// 'type' => 'ContentType',
|
|
)
|
|
);
|
|
$this->info['a']->excludes = array('a' => true);
|
|
}
|
|
|
|
}
|
|
|
|
?>
|