import escapeJsString from "@bugbearr/escapejsstring";
// var escapeJsString = require("@bugbearr/escapejsstring").default;
// Escape C0 chars and HTML, XML, JavaScript special chars for JavaScript string.
console.log(escapeJsString("\"<Hello,\r\n world!>\"\r\n"));
// Console.out
// \u0022\u003cHello,\r\n world!\u003e\u0022\r\n
generated from BugbearR/node-lib-tmpl
-
Notifications
You must be signed in to change notification settings - Fork 0
escape JavaScript string.
License
BugbearR/escapeJsString-js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
escape JavaScript string.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published