UNPKG

@contentstack/utils

Version:
9 lines 294 B
export function replaceHtmlEntities(text) { return text .replace(/&/g, '&amp;') .replace(/</g, '&lt;') .replace(/>/g, '&gt;') .replace(/"/g, '&quot;'); } export var forbiddenAttrChars = ['"', "'", '>', '<', '/', '=']; //# sourceMappingURL=string-utils.js.map