(s, i)
| 195 | }; |
| 196 | |
| 197 | function unEntities(s, i) { |
| 198 | s = String(s); |
| 199 | if (s.length > 3 && s.indexOf('&') !== -1) { |
| 200 | if (s.indexOf('>') !== -1) s = s.replace(/>/g, '>'); |
| 201 | if (s.indexOf('<') !== -1) s = s.replace(/</g, '<'); |
| 202 | if (s.indexOf('"') !== -1) s = s.replace(/"/g, '"'); |
| 203 | |
| 204 | if (s.indexOf('&') !== -1) { |
| 205 | s = s.replace(/&#(\d+);|&#x([0123456789abcdef]+);|&(\w+);/ig, rpEntities); |
| 206 | }; |
| 207 | }; |
| 208 | |
| 209 | return s; |
| 210 | }; |
| 211 | |
| 212 | |
| 213 | EasySAXParser.prototype.allowedAngularAttributeChars = function(w) { |
no test coverage detected