ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
Hypertext.php
Go to the documentation of this file.
1
<?php
2
6
class
HTMLPurifier_HTMLModule_Hypertext
extends
HTMLPurifier_HTMLModule
7
{
8
12
public
$name
=
'Hypertext'
;
13
17
public
function
setup
(
$config
)
18
{
19
$a = $this->
addElement
(
20
'a'
,
21
'Inline'
,
22
'Inline'
,
23
'Common'
,
24
array
(
25
// 'accesskey' => 'Character',
26
// 'charset' => 'Charset',
27
'href'
=>
'URI'
,
28
// 'hreflang' => 'LanguageCode',
29
'rel'
=>
new
HTMLPurifier_AttrDef_HTML_LinkTypes
(
'rel'
),
30
'rev'
=>
new
HTMLPurifier_AttrDef_HTML_LinkTypes
(
'rev'
),
31
// 'tabindex' => 'Number',
32
// 'type' => 'ContentType',
33
)
34
);
35
$a->formatting =
true
;
36
$a->excludes =
array
(
'a'
=>
true
);
37
}
38
}
39
40
// vim: et sw=4 sts=4
HTMLPurifier_HTMLModule_Hypertext\setup
setup($config)
Definition:
Hypertext.php:17
$config
$config
Definition:
flush-definition-cache.php:23
HTMLPurifier_HTMLModule_Hypertext\$name
$name
string
Definition:
Hypertext.php:12
HTMLPurifier_AttrDef_HTML_LinkTypes
Validates a rel/rev link attribute against a directive of allowed values.
Definition:
LinkTypes.php:9
HTMLPurifier_HTMLModule\addElement
addElement($element, $type, $contents, $attr_includes=array(), $attr=array())
Convenience function that sets up a new element.
Definition:
HTMLModule.php:144
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
HTMLPurifier_HTMLModule_Hypertext
XHTML 1.1 Hypertext Module, defines hypertext links.
Definition:
Hypertext.php:6
HTMLPurifier_HTMLModule
Represents an XHTML 1.1 module, with information on elements, tags and attributes.
Definition:
HTMLModule.php:18
libs
composer
vendor
ezyang
htmlpurifier
library
HTMLPurifier
HTMLModule
Hypertext.php
Generated on Sat Jan 18 2025 19:01:02 for ILIAS by
1.8.13 (using
Doxyfile
)