MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / escape

Method escape

daily/ydyp.js:164–173  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

162}
163class r {
164 static escape(e) {
165 const t = {
166 "&": "&",
167 "<": "&lt;",
168 ">": "&gt;",
169 '"': "&quot;",
170 "'": "&#39;"
171 };
172 return e.replace(/[&<>"']/g, e => t[e])
173 }
174 static get(e = {}, t = "", o = void 0) {
175 Array.isArray(t) || (t = r.toPath(t));
176 const n = t.reduce((e, t) => Object(e)[t], e);

Callers 2

render_reportFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected