2007-02-04 01:01:27 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once 'HTMLPurifier/HTMLModule.php';
|
2007-03-31 02:58:16 +00:00
|
|
|
require_once 'HTMLPurifier/AttrDef/HTML/LinkTypes.php';
|
2007-02-04 01:01:27 +00:00
|
|
|
|
|
|
|
/**
|
2007-02-04 04:41:34 +00:00
|
|
|
* XHTML 1.1 Hypertext Module, defines hypertext links. Core Module.
|
2007-02-04 01:01:27 +00:00
|
|
|
*/
|
|
|
|
class HTMLPurifier_HTMLModule_Hypertext extends HTMLPurifier_HTMLModule
|
|
|
|
{
|
|
|
|
|
2007-02-14 22:30:17 +00:00
|
|
|
var $name = 'Hypertext';
|
2007-02-04 01:01:27 +00:00
|
|
|
|
|
|
|
function HTMLPurifier_HTMLModule_Hypertext() {
|
2007-05-08 03:28:58 +00:00
|
|
|
$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',
|
|
|
|
)
|
2007-02-04 01:01:27 +00:00
|
|
|
);
|
|
|
|
$this->info['a']->excludes = array('a' => true);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|