ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
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
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
HTMLPurifier_Injector
Injects tokens into the document while parsing for well-formedness.
Definition:
Injector.php:16
HTMLPurifier_Token_Text
Concrete text token class.
Definition:
Text.php:12
HTMLPurifier_Injector_DisplayLinkURI\handleElement
handleElement(&$token)
Definition:
DisplayLinkURI.php:21
Services
Html
HtmlPurifier
library
HTMLPurifier
Injector
DisplayLinkURI.php
Generated on Mon Apr 14 2025 19:00:45 for ILIAS by
1.8.13 (using
Doxyfile
)