Apply html utils sanitiser to embedded page (#33842)

* Apply html utils sanitiser to embedded page

* Write tests
This commit is contained in:
Michael Telatynski
2026-06-15 12:58:56 +00:00
committed by GitHub
parent 0f0f8c6ba2
commit 7949980a7e
6 changed files with 82 additions and 6 deletions
@@ -91,3 +91,20 @@ exports[`bodyToNode should handle inline media when mediaIsVisible is true 1`] =
</span>
</DocumentFragment>
`;
exports[`sanitizedHtmlNode should respect className 1`] = `
<DocumentFragment>
<div
class="testClass"
dir="auto"
>
<a
href="https://google.com"
rel="noreferrer noopener"
target="_blank"
>
Link
</a>
</div>
</DocumentFragment>
`;