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

Function stripRawHtml

apps/sim/lib/mothership/inbox/response.ts:258–265  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

256}
257
258function stripRawHtml(text: string): string {
259 return text
260 .split(/(```[\s\S]*?```)/g)
261 .map((segment, i) =>
262 i % 2 === 0 ? replaceUntilStable(segment, /<\/?[a-z][^>]*>/gi, '') : segment
263 )
264 .join('')
265}
266
267function preserveSoftBreaks(text: string): string {
268 return text

Callers 1

renderEmailHtmlFunction · 0.85

Calls 2

replaceUntilStableFunction · 0.90
joinMethod · 0.80

Tested by

no test coverage detected