mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 17:01:51 +00:00
e55babdc53
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@753 48356398-32a2-884e-a903-53898d9a118a
37 lines
1.0 KiB
PHP
37 lines
1.0 KiB
PHP
<?php
|
|
|
|
require_once 'HTMLPurifier/HTMLModule.php';
|
|
|
|
/**
|
|
* XHTML 1.1 Hypertext Module, defines hypertext links. Core Module.
|
|
*/
|
|
class HTMLPurifier_HTMLModule_Hypertext extends HTMLPurifier_HTMLModule
|
|
{
|
|
|
|
var $name = 'Hypertext';
|
|
var $type = 'define';
|
|
var $elements = array('a');
|
|
var $info = array();
|
|
var $content_sets = array('Inline' => 'a');
|
|
|
|
function HTMLPurifier_HTMLModule_Hypertext() {
|
|
$this->info['a'] = new HTMLPurifier_ElementDef();
|
|
$this->info['a']->attr = array(
|
|
0 => array('Common'),
|
|
// 'accesskey' => 'Character',
|
|
// 'charset' => 'Charset',
|
|
'href' => 'URI',
|
|
//'hreflang' => 'LanguageCode',
|
|
//'rel' => 'LinkTypes',
|
|
//'rev' => 'LinkTypes',
|
|
//'tabindex' => 'Number',
|
|
//'type' => 'ContentType',
|
|
);
|
|
$this->info['a']->content_model = '#PCDATA | Inline';
|
|
$this->info['a']->content_model_type = 'optional';
|
|
$this->info['a']->excludes = array('a' => true);
|
|
}
|
|
|
|
}
|
|
|
|
?>
|