MCPcopy Create free account
hub / github.com/github/docs / escapeHTML

Function escapeHTML

script/search/index-elasticsearch.js:409–411  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

407}
408
409function escapeHTML(content) {
410 return content.replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;')
411}
412
413async function loadRecords(indexName, sourceDirectory) {
414 const filePath = path.join(sourceDirectory, `${indexName}-records.json`)

Callers 1

indexVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected