MCPcopy
hub / github.com/wandb/openui / escapeHTML

Function escapeHTML

frontend/src/lib/html.ts:251–255  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

249}
250
251export function escapeHTML(str: string) {
252 const div = document.createElement('div')
253 div.append(document.createTextNode(str))
254 return div.innerHTML
255}
256
257export async function parseHTML(
258 html: string,

Callers 1

parseMarkdownFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected