2
0
şunun yansıması https://github.com/cderche/greenlock-storage-s3 eşitlendi 2025-07-05 15:46:31 +00:00
gl-store-s3.js/node_modules/aws-sdk/lib/xml/escape-attribute.js
2019-05-08 11:43:08 +01:00

14 satır
320 B
JavaScript

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