protected function preventXss($value)
    {
        $string = strtolower( html_entity_decode( $value ) );

        if (strpos($string, '<script>') !== false) {
            $value = '';
        }

        if (strpos($string, 'javascript') !== false) {
            $value = '';
        }

        if (strpos($string, 'fromcharcode') !== false) {
            $value = '';
        }

        if (strpos($string, '&#x') !== false) {
            $value = '';
        }

        return $value;
    }
protected function preventXss($value)
    {
        $string = strtolower( html_entity_decode( $value ) );

        if (strpos($string, '<script>') !== false) {
            $value = '';
        }

        if (strpos($string, 'javascript') !== false) {
            $value = '';
        }

        if (strpos($string, 'fromcharcode') !== false) {
            $value = '';
        }

        if (strpos($string, '&#x') !== false) {
            $value = '';
        }

        return $value;
    }
protected function preventXss ( $ value ) { $ string = strtolower ( html_entity_decode ( $ value ) ) ; if ( strpos ( $ string , '<script>' ) !== false ) { $ value = '' ; } if ( strpos ( $ string , 'javascript' ) !== false ) { $ value = '' ; } if ( strpos ( $ string , 'fromcharcode' ) !== false ) { $ value = '' ; } if ( strpos ( $ string , '&#x' ) !== false ) { $ value = '' ; } return $ value ; }
Remove potential XSS attacks from the input string

@param   string $value       String value that needs to be cleaned of XSS data
@return string
Remove potential XSS attacks from the input string