Recursively escape disallowed html tags in manga and tracker descriptions

In case there the description contained something like "<some text that is interpreted as an invalid html tag>", it was sanitized to "<some" with the rest of the text in the "tag" getting removed.
This commit is contained in:
schroda
2025-07-15 00:43:18 +02:00
parent b49243607d
commit f221425a89
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ export const DescriptionGenre = ({
mb: OPEN_CLOSE_BUTTON_HEIGHT,
}}
>
{parseHtml(sanitizeHtml(description, { disallowedTagsMode: 'escape' }))}
{parseHtml(sanitizeHtml(description, { disallowedTagsMode: 'recursiveEscape' }))}
</Typography>
</Collapse>
<Stack