(root: Element)
| 52 | } |
| 53 | |
| 54 | function removeForbiddenElements(root: Element): void { |
| 55 | for (const tag of FORBIDDEN_TAGS) { |
| 56 | for (const el of Array.from(root.getElementsByTagName(tag))) { |
| 57 | el.remove(); |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | function scrubUnsafeUrlAttributes(root: Element): void { |
| 63 | for (const el of Array.from( |
no test coverage detected