Handle line breaks in tracker search entry summaries
This commit is contained in:
@@ -67,7 +67,7 @@ const TrackerMangaCardSummary = ({ summary }: { summary: string }) => {
|
|||||||
<>
|
<>
|
||||||
{summary.length && (
|
{summary.length && (
|
||||||
<Collapse collapsedSize={summaryCollapsedSize} in={isSummaryExpanded}>
|
<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' }))}
|
{parseHtml(sanitizeHtml(summary, { disallowedTagsMode: 'escape' }))}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Collapse>
|
</Collapse>
|
||||||
|
|||||||
Reference in New Issue
Block a user