MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / decodeHtmlEntities

Function decodeHtmlEntities

src/app/api/calendar/route.ts:55–58  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

53}
54
55function decodeHtmlEntities(s: string): string {
56 return s.replace(/&#x([0-9A-Fa-f]+);/g, (_, hex) => String.fromCodePoint(parseInt(hex, 16)))
57 .replace(/&#(\d+);/g, (_, dec) => String.fromCodePoint(parseInt(dec, 10)));
58}
59
60function parseKhalOutput(output: string): CalendarEvent[] {
61 const lines = output.trim().split("\n").filter(Boolean);

Callers 1

parseKhalOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected