repo.or.cz
/
htmlpurifier
/
bfroehle.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge remote-tracking branch 'origin/master' into iframe
[htmlpurifier/bfroehle.git]
/
library
/
HTMLPurifier
/
AttrDef
/
Text.php
blob
c6216cc531d4b351799ea7b9764d88f578c9c26a
1
<
?php
2
3
/**
4
* Validates arbitrary text according to the HTML spec.
5
*/
6
class
HTMLPurifier_AttrDef_Text
extends
HTMLPurifier_AttrDef
7
{
8
9
public function
validate
(
$string
,
$config
,
$context
) {
10
return
$this
->
parseCDATA
(
$string
);
11
}
12
13
}
14
15
// vim: et sw=4 sts=4