MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / escapeHtml

Function escapeHtml

deployments/desktop/static/desktop.js:1560–1567  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1558 }
1559
1560 function escapeHtml(value) {
1561 return String(value ?? "")
1562 .replaceAll("&", "&")
1563 .replaceAll("<", "&lt;")
1564 .replaceAll(">", "&gt;")
1565 .replaceAll('"', "&quot;")
1566 .replaceAll("'", "&#39;");
1567 }
1568
1569 function normalizeScore(value) {
1570 const raw = Number(value);

Callers 15

showFeedbackToastFunction · 0.70
showPaperFeedbackFunction · 0.70
setDirectReadStatusFunction · 0.70
loadUsersFunction · 0.70
renderChoiceListFunction · 0.70
renderPushFunction · 0.70
renderInlineMarkdownFunction · 0.70
flushCodeFunction · 0.70
renderReportListFunction · 0.70
renderWikiGraphFunction · 0.70
renderWikiListFunction · 0.70
renderWikiTagsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected