don't set dangerouslySetInnerHtml for spoiler component

This commit is contained in:
Kendall Garner
2025-12-05 07:01:31 -08:00
parent 8bb46d78aa
commit 202c5da350
2 changed files with 6 additions and 5 deletions
@@ -175,7 +175,9 @@ const AlbumArtistMetadataBiography = ({
artist: artistName,
})}
</TextTitle>
<Spoiler dangerouslySetInnerHTML={{ __html: sanitizedBiography }} />
<Spoiler maxHeight={50}>
<div dangerouslySetInnerHTML={{ __html: sanitizedBiography }}></div>
</Spoiler>
</section>
);
};
@@ -228,10 +228,9 @@ const AlbumArtistPropertyMapping: ItemDetailRow<AlbumArtist>[] = [
label: 'common.biography',
render: (artist) =>
artist.biography ? (
<Spoiler
dangerouslySetInnerHTML={{ __html: sanitize(artist.biography) }}
maxHeight={50}
/>
<Spoiler maxHeight={50}>
<div dangerouslySetInnerHTML={{ __html: sanitize(artist.biography) }} />
</Spoiler>
) : null,
},
{ key: 'id', label: 'filter.id' },