File: Text.php

package info (click to toggle)
icinga-php-thirdparty 0.12.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 77,540 kB
  • sloc: xml: 606,611; php: 350,843; javascript: 12,409; sql: 121; makefile: 64; sh: 49
file content (21 lines) | stat: -rw-r--r-- 430 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

/**
 * Validates arbitrary text according to the HTML spec.
 */
class HTMLPurifier_AttrDef_Text extends HTMLPurifier_AttrDef
{

    /**
     * @param string $string
     * @param HTMLPurifier_Config $config
     * @param HTMLPurifier_Context $context
     * @return bool|string
     */
    public function validate($string, $config, $context)
    {
        return $this->parseCDATA($string);
    }
}

// vim: et sw=4 sts=4