(url)
| 207 | } |
| 208 | |
| 209 | function sanitizeUrl(url) { |
| 210 | try { |
| 211 | const parsed = new URL(url, window.location.href); |
| 212 | if (["http:", "https:", "mailto:"].includes(parsed.protocol)) { |
| 213 | return parsed.href; |
| 214 | } |
| 215 | } catch { |
| 216 | } |
| 217 | return null; |
| 218 | } |
| 219 | |
| 220 | function renderInlineMarkdown(text) { |
| 221 | const placeholders = []; |
no outgoing calls
no test coverage detected