Remove html parsing of manga and tracker descriptions
Revertsd726793e3danda48cb0ce27to get rid of the known issue mentioned in the commit description ofd726793e3d. Don't remember why I added this, it doesn't seem that either of the descriptions contains any html.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user