"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.escapeHTMLEntities = escapeHTMLEntities;
exports.escapeCData = escapeCData;
exports.escapeComment = escapeComment;
function escapeHTMLEntities(html) {
    return html.replace(/&/g, "&amp;")
        .replace(/</g, "&lt;")
        .replace(/>/g, "&gt;")
        .replace(/"/g, "&quot;")
        .replace(/'/g, "&#039;");
}
function escapeCData(text) {
    return `<![CDATA[${text}]]>`;
}
function escapeComment(comment) {
    return `<!--${comment}-->`;
}
//# sourceMappingURL=functions.js.map