Jyxo\StringUtil::escape PHP Method

escape() public static method

Htmlspecialchars function alias with some parameters automatically set.
public static escape ( string $string, integer $quoteStyle = ENT_QUOTES, boolean $doubleEncode = false ) : string
$string string Input string
$quoteStyle integer Quote style
$doubleEncode boolean Prevent from double encoding
return string
    public static function escape(string $string, int $quoteStyle = ENT_QUOTES, bool $doubleEncode = false) : string
    {
        return @htmlspecialchars($string, $quoteStyle, 'utf-8', $doubleEncode);
    }