MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / escapeHtml

Function escapeHtml

src/ifcchat/app.js:200–207  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

198}
199
200function escapeHtml(text) {
201 return text
202 .replaceAll("&", "&")
203 .replaceAll("<", "&lt;")
204 .replaceAll(">", "&gt;")
205 .replaceAll('"', "&quot;")
206 .replaceAll("'", "&#39;");
207}
208
209function sanitizeUrl(url) {
210 try {

Callers 2

renderInlineMarkdownFunction · 0.85
renderMarkdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected