friendica/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Hypertext.php

41 lines
996 B
PHP
Raw Normal View History

2010-09-09 03:14:17 +00:00
<?php
/**
* XHTML 1.1 Hypertext Module, defines hypertext links. Core Module.
*/
class HTMLPurifier_HTMLModule_Hypertext extends HTMLPurifier_HTMLModule
{
2016-02-09 10:06:17 +00:00
/**
* @type string
*/
2010-09-09 03:14:17 +00:00
public $name = 'Hypertext';
2016-02-09 10:06:17 +00:00
/**
* @param HTMLPurifier_Config $config
*/
public function setup($config)
{
2010-09-09 03:14:17 +00:00
$a = $this->addElement(
2016-02-09 10:06:17 +00:00
'a',
'Inline',
'Inline',
'Common',
2010-09-09 03:14:17 +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',
)
);
$a->formatting = true;
$a->excludes = array('a' => true);
}
}
// vim: et sw=4 sts=4