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