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

Function escapeHtml

core/http/static/image.js:247–251  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

245
246// Helper function to escape HTML
247function escapeHtml(text) {
248 const div = document.createElement("div");
249 div.textContent = text;
250 return div.innerHTML;
251}
252
253// Initialize
254document.addEventListener("DOMContentLoaded", function() {

Callers 1

promptDallEFunction · 0.70

Calls 1

createElementMethod · 0.80

Tested by

no test coverage detected