12 lines
511 B
JavaScript
12 lines
511 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.htmlEncode = exports.doubleQuoteEncode = void 0;
|
|
function doubleQuoteEncode(text) {
|
|
return text.replace(/"/g, '"');
|
|
}
|
|
exports.doubleQuoteEncode = doubleQuoteEncode;
|
|
function htmlEncode(text) {
|
|
return doubleQuoteEncode(text.replace(/&/g, '&').replace(/\//g, '/').replace(/</g, '<').replace(/>/g, '>').replace(/'/g, '''));
|
|
}
|
|
exports.htmlEncode = htmlEncode;
|
|
//# sourceMappingURL=htmlEncode.js.map
|