Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / lib / htmlpurifier / HTMLPurifier / AttrDef / Text.php
blobc06346649b11207fef17bcfdd08b201f1c1be8c9
1 <?php
3 require_once 'HTMLPurifier/AttrDef.php';
5 /**
6 * Validates arbitrary text according to the HTML spec.
7 */
8 class HTMLPurifier_AttrDef_Text extends HTMLPurifier_AttrDef
11 function validate($string, $config, &$context) {
12 return $this->parseCDATA($string);