(text)
| 1087 | } |
| 1088 | |
| 1089 | function escapeXml(text) { |
| 1090 | return String(text).replace(/[&<>"']/g, function (char) { |
| 1091 | return { |
| 1092 | '&': '&', |
| 1093 | '<': '<', |
| 1094 | '>': '>', |
| 1095 | '"': '"', |
| 1096 | "'": ''' |
| 1097 | }[char]; |
| 1098 | }); |
| 1099 | } |
| 1100 | }()); |
no outgoing calls
no test coverage detected