Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
canvas
/
node_modules
/
xml
/
lib
/
Filename :
escapeForXML.js
back
Copy
var XML_CHARACTER_MAP = { '&': '&', '"': '"', "'": ''', '<': '<', '>': '>' }; function escapeForXML(string) { return string && string.replace ? string.replace(/([&"<>'])/g, function(str, item) { return XML_CHARACTER_MAP[item]; }) : string; } module.exports = escapeForXML;