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-11-25 02:24:39 +00:00
|
|
|
public $name = 'Hypertext';
|
2007-02-04 01:01:27 +00:00
|
|
|
|
2007-11-29 04:29:51 +00:00
|
|
|
public function __construct() {
|
2007-05-12 20:44:47 +00:00
|
|
|
$a =& $this->addElement(
|
2007-05-08 03:28:58 +00:00
|
|
|
'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
|
|
|
);
|
2007-05-12 20:44:47 +00:00
|
|
|
$a->excludes = array('a' => true);
|
2007-02-04 01:01:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|