MCPcopy Create free account
hub / github.com/middleapi/orpc / escapeHtml

Function escapeHtml

scripts/sync-sponsor.ts:64–71  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

62}
63
64function escapeHtml(value: string): string {
65 return value
66 .replaceAll('&', '&')
67 .replaceAll('<', '&lt;')
68 .replaceAll('>', '&gt;')
69 .replaceAll('"', '&quot;')
70 .replaceAll('\'', '&#39;')
71}
72
73function getTierImageSizeAndColumns(tierLevel: number, tierLevels: number[]): [columns: number, imageSize: number] {
74 const rank = tierLevels.findIndex(level => level === tierLevel)

Callers 1

buildSponsorsSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected