Remove html parsing of manga and tracker descriptions

Reverts d726793e3d and a48cb0ce27 to get rid of the known issue mentioned in the commit description of d726793e3d.
Don't remember why I added this, it doesn't seem that either of the descriptions contains any html.
This commit is contained in:
schroda
2025-07-15 00:46:35 +02:00
parent f221425a89
commit ae1d0ecd67
4 changed files with 3 additions and 121 deletions

View File

@@ -14,8 +14,6 @@ import Stack from '@mui/material/Stack';
import IconButton from '@mui/material/IconButton';
import ExpandLessIcon from '@mui/icons-material/ExpandLess';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import parseHtml from 'html-react-parser';
import sanitizeHtml from 'sanitize-html';
import { useLocalStorage } from '@/modules/core/hooks/useStorage.tsx';
import { useResizeObserver } from '@/modules/core/hooks/useResizeObserver.tsx';
import {
@@ -64,7 +62,7 @@ export const DescriptionGenre = ({
mb: OPEN_CLOSE_BUTTON_HEIGHT,
}}
>
{parseHtml(sanitizeHtml(description, { disallowedTagsMode: 'recursiveEscape' }))}
{description}
</Typography>
</Collapse>
<Stack

View File

@@ -18,9 +18,7 @@ import Link from '@mui/material/Link';
import Stack from '@mui/material/Stack';
import Typography from '@mui/material/Typography';
import { useLayoutEffect, useRef, useState } from 'react';
import parseHtml from 'html-react-parser';
import CheckCircleIcon from '@mui/icons-material/CheckCircle';
import sanitizeHtml from 'sanitize-html';
import { CustomTooltip } from '@/modules/core/components/CustomTooltip.tsx';
import { SpinnerImage } from '@/modules/core/components/SpinnerImage.tsx';
import { TypographyMaxLines } from '@/modules/core/components/texts/TypographyMaxLines.tsx';
@@ -74,7 +72,7 @@ const TrackerMangaCardSummary = ({ summary }: { summary: string }) => {
{summary.length && (
<Collapse collapsedSize={summaryCollapsedSize} in={isSummaryExpanded}>
<Typography ref={summaryRef} variant="body1" component="p" sx={{ whiteSpace: 'pre-line' }}>
{parseHtml(sanitizeHtml(summary, { disallowedTagsMode: 'recursiveEscape' }))}
{summary}
</Typography>
</Collapse>
)}