MCPcopy Index your code
hub / github.com/simstudioai/sim / decodeHtmlEntities

Function decodeHtmlEntities

apps/sim/tools/confluence/utils.ts:57–73  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

55}
56
57function decodeHtmlEntities(text: string): string {
58 let decoded = text
59 let previous: string
60
61 do {
62 previous = decoded
63 decoded = decoded
64 .replace(/ /g, ' ')
65 .replace(/&lt;/g, '<')
66 .replace(/&gt;/g, '>')
67 .replace(/&quot;/g, '"')
68 .replace(/&#39;/g, "'")
69 decoded = decoded.replace(/&amp;/g, '&')
70 } while (decoded !== previous)
71
72 return decoded
73}
74
75function stripHtmlTags(html: string): string {
76 let text = html

Callers 1

cleanHtmlContentFunction · 0.70

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected