public function escape($string)
    {
        $string = mb_convert_encoding($string, 'UTF-8', 'UTF-8');
        $string = str_replace('{{', '', $string);
        $string = str_replace('}}', '', $string);

        return htmlentities($string, ENT_QUOTES, 'UTF-8');
    }
public function escape($string)
    {
        $string = mb_convert_encoding($string, 'UTF-8', 'UTF-8');
        $string = str_replace('{{', '', $string);
        $string = str_replace('}}', '', $string);

        return htmlentities($string, ENT_QUOTES, 'UTF-8');
    }
public function escape ( $ string ) { $ string = mb_convert_encoding ( $ string , 'UTF-8' , 'UTF-8' ) ; $ string = str_replace ( '{{' , '' , $ string ) ; $ string = str_replace ( '}}' , '' , $ string ) ; return htmlentities ( $ string , ENT_QUOTES , 'UTF-8' ) ; }
Escapes values from bad stuff but only simple.

@param string $string String to escape

@author Benjamin Carl <opensource@clickalicious.de>

@return string Escaped input
Escapes values from bad stuff but only simple .