1.0.4 • Published 3 years ago

st-no-love v1.0.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

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

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago