ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
DisplayLinkURI.php
Go to the documentation of this file.
1
<?
php
2
6
class
HTMLPurifier_Injector_DisplayLinkURI
extends
HTMLPurifier_Injector
7
{
11
public
$name
=
'DisplayLinkURI'
;
12
16
public
$needed
=
array
(
'a'
);
17
21
public
function
handleElement
(&$token)
22
{
23
}
24
28
public
function
handleEnd
(&$token)
29
{
30
if
(isset($token->start->attr[
'href'
])) {
31
$url
= $token->start->attr[
'href'
];
32
unset($token->start->attr[
'href'
]);
33
$token =
array
($token,
new
HTMLPurifier_Token_Text
(
" ($url)"
));
34
}
else
{
35
// nothing to display
36
}
37
}
38
}
39
40
// vim: et sw=4 sts=4
HTMLPurifier_Injector_DisplayLinkURI\$name
$name
string
Definition:
DisplayLinkURI.php:11
$url
$url
Definition:
shib_logout.php:72
HTMLPurifier_Injector_DisplayLinkURI
Injector that displays the URL of an anchor instead of linking to it, in addition to showing the text...
Definition:
DisplayLinkURI.php:6
HTMLPurifier_Injector_DisplayLinkURI\$needed
$needed
array
Definition:
DisplayLinkURI.php:16
HTMLPurifier_Injector_DisplayLinkURI\handleEnd
handleEnd(&$token)
Definition:
DisplayLinkURI.php:28
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
HTMLPurifier_Injector
Injects tokens into the document while parsing for well-formedness.
Definition:
Injector.php:16
php
HTMLPurifier_Token_Text
Concrete text token class.
Definition:
Text.php:12
HTMLPurifier_Injector_DisplayLinkURI\handleElement
handleElement(&$token)
Definition:
DisplayLinkURI.php:21
libs
composer
vendor
ezyang
htmlpurifier
library
HTMLPurifier
Injector
DisplayLinkURI.php
Generated on Fri Jan 17 2025 19:00:50 for ILIAS by
1.8.13 (using
Doxyfile
)