Spatie\BladeJavaScript\Transformers\StringTransformer::escape PHP Method

escape() protected method

protected escape ( string $value ) : string
$value string
return string
    protected function escape(string $value) : string
    {
        return str_replace(['\\', "'"], ['\\\\', "\\'"], $value);
    }