mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-10 07:38:41 +00:00
eaabccdd9b
- Removed HTMLPurifier_Error - Documentation updates - Removed more copy() methods in favor of clone - HTMLPurifier::getInstance() to HTMLPurifier::instance() - Fix InterchangeBuilder to use HTMLPURIFIER_PREFIX git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1689 48356398-32a2-884e-a903-53898d9a118a
30 lines
821 B
PHP
30 lines
821 B
PHP
<?php
|
|
|
|
/**
|
|
* XHTML 1.1 Hypertext Module, defines hypertext links. Core Module.
|
|
*/
|
|
class HTMLPurifier_HTMLModule_Hypertext extends HTMLPurifier_HTMLModule
|
|
{
|
|
|
|
public $name = 'Hypertext';
|
|
|
|
public function __construct() {
|
|
$a = $this->addElement(
|
|
'a', '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',
|
|
)
|
|
);
|
|
$a->excludes = array('a' => true);
|
|
}
|
|
|
|
}
|
|
|