2
0
mirror of https://github.com/cderche/greenlock-storage-s3 synced 2025-12-24 21:28:40 +00:00
2019-05-08 11:43:08 +01:00

14 lines
264 B
JavaScript

/**
* Escapes characters that can not be in an XML element.
*/
function escapeElement(value) {
return value.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
}
/**
* @api private
*/
module.exports = {
escapeElement: escapeElement
};