XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
DisplayLinkURI.php
Go to the documentation of this file.
1
<?php
2
6
class
HTMLPurifier_Injector_DisplayLinkURI
extends
HTMLPurifier_Injector
7
{
8
9
public
$name
=
'DisplayLinkURI'
;
10
public
$needed
= array(
'a'
);
11
12
public
function
handleElement
(&
$token
) {
13
}
14
15
public
function
handleEnd
(&
$token
) {
16
if
(isset(
$token
->start->attr[
'href'
])){
17
$url
=
$token
->start->attr[
'href'
];
18
unset(
$token
->start->attr[
'href'
]);
19
$token
= array(
$token
,
new
HTMLPurifier_Token_Text
(
" ($url)"
));
20
}
else
{
21
// nothing to display
22
}
23
}
24
}
25
26
// vim: et sw=4 sts=4
L:
0xoops
xoops-2.5.6
htdocs
xoops_lib
modules
protector
library
HTMLPurifier
Injector
DisplayLinkURI.php
Generated on Fri May 10 2013 01:04:30 for XOOPS 2.5.6 by
1.8.3.1