Handle line breaks in tracker search entry summaries

This commit is contained in:
schroda
2025-02-02 01:13:22 +01:00
parent 8ddb259c82
commit 441cdaa6e7

View File

@@ -67,7 +67,7 @@ const TrackerMangaCardSummary = ({ summary }: { summary: string }) => {
<>
{summary.length && (
<Collapse collapsedSize={summaryCollapsedSize} in={isSummaryExpanded}>
<Typography ref={summaryRef} variant="body1" component="p">
<Typography ref={summaryRef} variant="body1" component="p" sx={{ whiteSpace: 'pre-line' }}>
{parseHtml(sanitizeHtml(summary, { disallowedTagsMode: 'escape' }))}
</Typography>
</Collapse>