mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-17 00:44:23 +02:00
don't set dangerouslySetInnerHtml for spoiler component
This commit is contained in:
@@ -175,7 +175,9 @@ const AlbumArtistMetadataBiography = ({
|
|||||||
artist: artistName,
|
artist: artistName,
|
||||||
})}
|
})}
|
||||||
</TextTitle>
|
</TextTitle>
|
||||||
<Spoiler dangerouslySetInnerHTML={{ __html: sanitizedBiography }} />
|
<Spoiler maxHeight={50}>
|
||||||
|
<div dangerouslySetInnerHTML={{ __html: sanitizedBiography }}></div>
|
||||||
|
</Spoiler>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -228,10 +228,9 @@ const AlbumArtistPropertyMapping: ItemDetailRow<AlbumArtist>[] = [
|
|||||||
label: 'common.biography',
|
label: 'common.biography',
|
||||||
render: (artist) =>
|
render: (artist) =>
|
||||||
artist.biography ? (
|
artist.biography ? (
|
||||||
<Spoiler
|
<Spoiler maxHeight={50}>
|
||||||
dangerouslySetInnerHTML={{ __html: sanitize(artist.biography) }}
|
<div dangerouslySetInnerHTML={{ __html: sanitize(artist.biography) }} />
|
||||||
maxHeight={50}
|
</Spoiler>
|
||||||
/>
|
|
||||||
) : null,
|
) : null,
|
||||||
},
|
},
|
||||||
{ key: 'id', label: 'filter.id' },
|
{ key: 'id', label: 'filter.id' },
|
||||||
|
|||||||
Reference in New Issue
Block a user