Last Updated: February 25, 2016
·
198
· gifthlong

Sanitize input to be treated as a literal

`javascript

dirtystring.replace(/([.*+?^${}()|[]\/\])/g, "\$1");