quotemeta - Quotes and protects metacharacters.
quotemeta(string)
This function protects metacharacters: it will return the input string after having introduced an antislash before each one of these characters: .\+*?^($)[]
Note: In the followings examples, the _ between the { should be removed to make it work.
in: res={_{quotemeta(".\/*")}}. out: res=\.\\\/\*.
{{ include("includes/strings.sn") }}
Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>
1.0 2014-09-09 21:24:14 laplante@sednove.com
Edit© 2024 extenso Inc. All rights reserved.