1.0.4 • Published 3 years ago
st-no-love v1.0.4
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