MCPcopy Create free account
hub / github.com/breck7/scroll / _escapeHtml

Function _escapeHtml

external/.datatables.js:1228–1234  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

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, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;") : d
1234 }
1235
1236 // Remove diacritics from a string by decomposing it and then removing
1237 // non-ascii characters

Callers 2

.datatables.jsFile · 0.85
__mlHelperFunction · 0.85

Calls 2

replaceMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected