(str)
| 2246 | |
| 2247 | /** @param {string} str */ |
| 2248 | export function decode(str) { |
| 2249 | return str |
| 2250 | .replace(numeric, (_match, hex, code) => String.fromCharCode(hex ? parseInt(code, 16) : +code)) |
| 2251 | .replace(named, (_match, entity) => entities[entity]); |
| 2252 | } |
no outgoing calls
no test coverage detected