st-no-love
v1.0.4
Published
Tool for escaping script tags using backslashes (no regex).
Downloads
3
Readme
st-no-love
Tool for escaping script tags using backslashes (no regex).
Note: This tool only escapes script tags. If you would like to replace less than or greater than signs with HTML entities, please see https://github.com/Rairye/convert-with-ents
Code Sample
import escapeScriptTags from "st-no-love";
var source = "<script>Hey, how are you doing?<\/script>";
var result = escapeScriptTags(source);
console.log(result);
Other Packages
If you would like to filter out or create a whitelist for punctuation characters, please see https://github.com/Rairye/js-mnl-punct-norm