MCPcopy
hub / github.com/mudler/LocalAI / escapeHtml

Function escapeHtml

core/http/static/video.js:281–285  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

279
280// Helper function to escape HTML
281function escapeHtml(text) {
282 const div = document.createElement("div");
283 div.textContent = text;
284 return div.innerHTML;
285}
286
287// Helper function to download video
288function downloadVideo(item, button) {

Callers 1

promptVideoFunction · 0.70

Calls 1

createElementMethod · 0.80

Tested by

no test coverage detected