12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.escapeDoubleQuotes = exports.escapeSingleQuotes = exports.escapeRightAngleBracketsInCdataTerminator = exports.escapeLeftAngleBrackets = exports.escapeAmpersands = void 0;
- function escapeAmpersands(str) {
- return str.replace(/&/g, "&");
- }
- exports.escapeAmpersands = escapeAmpersands;
- function escapeLeftAngleBrackets(str) {
- return str.replace(/</g, "<");
- }
- exports.escapeLeftAngleBrackets = escapeLeftAngleBrackets;
- function escapeRightAngleBracketsInCdataTerminator(str) {
- return str.replace(/]]>/g, "]]>");
- }
- exports.escapeRightAngleBracketsInCdataTerminator = escapeRightAngleBracketsInCdataTerminator;
- function escapeSingleQuotes(str) {
- return str.replace(/'/g, "'");
- }
- exports.escapeSingleQuotes = escapeSingleQuotes;
- function escapeDoubleQuotes(str) {
- return str.replace(/"/g, """);
- }
- exports.escapeDoubleQuotes = escapeDoubleQuotes;
|