MCPcopy Index your code
hub / github.com/xcanwin/KeepChatGPT / htmlEncode

Function htmlEncode

KeepChatGPT.user.js:408–413  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

406 };
407
408 const htmlEncode = function (text) {
409 var tempElement = document.createElement("div");
410 var textNode = document.createTextNode(text);
411 tempElement.appendChild(textNode);
412 return tempElement.innerHTML;
413 };
414
415 const parseRequestUrl = function (requestUrl) {
416 if (typeof requestUrl !== "string" || requestUrl.trim() === "") {

Callers 1

attachDateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected