src/Util.php
public static function escapeString( $string_data, $options = NULL )
    {
        if ( !$options ){
            $options = array(
                            'quote_style' => 'ENT_QUOTES',
                        );
        }

        $quote_style = ENT_NOQUOTES;
        if ( isset($options['quote_style']) && $options['quote_style'] == 'ENT_QUOTES' ){
            $quote_style = ENT_QUOTES;
        }

        $str = htmlspecialchars( $string_data, $quote_style );

        return $str;
    }
public static function escapeString( $string_data, $options = NULL )
    {
        if ( !$options ){
            $options = array(
                            'quote_style' => 'ENT_QUOTES',
                        );
        }

        $quote_style = ENT_NOQUOTES;
        if ( isset($options['quote_style']) && $options['quote_style'] == 'ENT_QUOTES' ){
            $quote_style = ENT_QUOTES;
        }

        $str = htmlspecialchars( $string_data, $quote_style );

        return $str;
    }
public static function escapeString ( $ string_data , $ options = NULL ) { if ( ! $ options ) { $ options = array ( 'quote_style' => 'ENT_QUOTES' , ) ; } $ quote_style = ENT_NOQUOTES ; if ( isset ( $ options [ 'quote_style' ] ) && $ options [ 'quote_style' ] == 'ENT_QUOTES' ) { $ quote_style = ENT_QUOTES ; } $ str = htmlspecialchars ( $ string_data , $ quote_style ) ; return $ str ; }
escape string for HTML

@param string $string_data
@param array $options

@return mixed
escape string for HTML