MCPcopy Create free account
hub / github.com/su-kaka/gcli2api / escapeHtml

Function escapeHtml

front/common.js:2096–2100  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

2094
2095// HTML转义函数
2096function escapeHtml(text) {
2097 const div = document.createElement('div');
2098 div.textContent = text;
2099 return div.innerHTML;
2100}
2101
2102// 高亮HTTP链接函数
2103function highlightHttpLinks(text) {

Callers 1

toggleErrorDetailsCommonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected