(d)
| 1226 | |
| 1227 | // Replaceable function in api.util |
| 1228 | var _escapeHtml = function (d) { |
| 1229 | if (Array.isArray(d)) { |
| 1230 | d = d.join(",") |
| 1231 | } |
| 1232 | |
| 1233 | return typeof d === "string" ? d.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """) : d |
| 1234 | } |
| 1235 | |
| 1236 | // Remove diacritics from a string by decomposing it and then removing |
| 1237 | // non-ascii characters |
no test coverage detected