2
0
mirror of https://github.com/cderche/greenlock-storage-s3 synced 2025-12-24 13:28:38 +00:00
2019-05-08 12:19:12 +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
};