MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / escapeHtml

Function escapeHtml

devtools/modules/utils.js:9–13  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

7}
8
9export function escapeHtml(str) {
10 const div = document.createElement('div');
11 div.textContent = str;
12 return div.innerHTML;
13}
14
15export async function copyToClipboard(text) {
16 try {

Callers 15

formatFilterSummaryFunction · 0.90
showLoadPresetModalFunction · 0.90
showStatisticsModalFunction · 0.90
showSaveConnectionModalFunction · 0.90
renderFilterConditionsFunction · 0.90
showDropdownFunction · 0.90
renderConnectionListFunction · 0.90
createMessageRowFunction · 0.90
showMessageDetailFunction · 0.90
highlightSearchMatchesFunction · 0.90
renderJsonCollectionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected