mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 05:36:00 +02:00
don't set dangerouslySetInnerHtml for spoiler component
This commit is contained in:
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user