gl-store-s3.js/node_modules/aws-sdk/lib/xml/escape-element.js

14 lines
264 B
JavaScript
Raw Normal View History

2019-05-08 11:19:12 +00:00
/**
* 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
};