2007-02-04 01:01:27 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
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
|
|
|
|
{
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2007-11-25 02:24:39 +00:00
|
|
|
public $name = 'Hypertext';
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2008-05-22 19:36:59 +00:00
|
|
|
public function setup($config) {
|
2008-04-23 02:40:17 +00:00
|
|
|
$a = $this->addElement(
|
2008-04-21 23:28:52 +00:00
|
|
|
'a', 'Inline', 'Inline', 'Common',
|
2007-05-08 03:28:58 +00:00
|
|
|
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
|
|
|
}
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2007-02-04 01:01:27 +00:00
|
|
|
}
|
|
|
|
|