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

Function stripUnsafeUrls

apps/sim/lib/mothership/inbox/response.ts:274–276  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

272}
273
274function stripUnsafeUrls(html: string): string {
275 return html.replace(/href\s*=\s*(['"])(?:javascript|vbscript|data):.*?\1/gi, 'href="#"')
276}
277
278async function renderEmailHtml(markdown: string, chatUrl: string): Promise<string> {
279 const safeMarkdown = preserveSoftBreaks(stripRawHtml(markdown))

Callers 2

renderEmailHtmlFunction · 0.85
renderErrorHtmlFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected