escape-element.js 264 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 /** * Escapes characters that can not be in an XML element. */ function escapeElement(value) { return value.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'); } /** * @api private */ module.exports = { escapeElement: escapeElement };