MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / escapeHtml

Function escapeHtml

lib/plugin/screenshot.js:440–442  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

438}
439
440function escapeHtml(s) {
441 return String(s).replace(/[&<>"']/g, c => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]))
442}
443
444const SLIDE_TEMPLATE = `
445<figure class="slides__slide{{activeClass}}{{failed}}" data-index="{{index}}">

Callers 1

writeIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected