fix: sanitize HTML from Mastodon servers (#788)

This commit is contained in:
jviide 2023-01-05 09:21:09 +02:00 committed by GitHub
parent 777066508e
commit 5c0e1790fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 260 additions and 50 deletions

View file

@ -23,7 +23,11 @@ const isDark = usePreferredDark()
exports[`html-parse > code frame 2 > html 1`] = `
"<p>
<span class=\\"h-card\\"
><a href=\\"https://mas.to/@antfu\\" class=\\"u-url mention\\"
><a
href=\\"https://mas.to/@antfu\\"
class=\\"u-url mention\\"
rel=\\"nofollow noopener noreferrer\\"
target=\\"_blank\\"
>@<span>antfu</span></a
></span
>