MCPcopy
hub / github.com/vogler/free-games-claimer / html_game_list

Function html_game_list

src/util.js:138–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136export const escapeHtml = unsafe => unsafe.replaceAll('&', '&amp;').replaceAll('<', '&lt;').replaceAll('>', '&gt;').replaceAll('"', '&quot;').replaceAll('\'', '&#039;');
137
138export const html_game_list = games => games.map(g => `- <a href="${g.url}">${escapeHtml(g.title)}</a> (${g.status})`).join('<br>');

Callers 5

prime-gaming.jsFile · 0.90
epic-games.jsFile · 0.90
gog.jsFile · 0.90
unrealengine.jsFile · 0.90
notify.jsFile · 0.90

Calls 1

escapeHtmlFunction · 0.85

Tested by

no test coverage detected