special-escape
Escape special characters in a string
Installation
special-escape
is published at npmjs.com, and can be installed using npm
or yarn
.
$ npm install special-escape # npm $ yarn add special-escape # yarn
; // ES6+const resolveWhen = ; // ES5
Usage
const specialChars = '+' '-' '=' '>' '.' '!' '(' ')' '{' '}' '[' ']' '^' '"' '~' '*' '?' ':' '\\' '/' const escapedString = ; ;