HTMLPurifier_Lexer::escapeCDATA PHP Method

escapeCDATA() protected static method

Translates CDATA sections into regular sections (through escaping).
protected static escapeCDATA ( string $string ) : string
$string string HTML string to process.
return string HTML with CDATA sections escaped.
    protected static function escapeCDATA($string)
    {
        return preg_replace_callback('/<!\\[CDATA\\[(.+?)\\]\\]>/s', array('HTMLPurifier_Lexer', 'CDATACallback'), $string);
    }