Jyxo\StringUtil::escape PHP Метод

escape() публичный статический Метод

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
Результат string
    public static function escape(string $string, int $quoteStyle = ENT_QUOTES, bool $doubleEncode = false) : string
    {
        return @htmlspecialchars($string, $quoteStyle, 'utf-8', $doubleEncode);
    }