Skip to content

🎧 Your Personal Streaming Service

Do not sanitize Album comments. This was already handled in the backend, when importing. Fix #715

Deluan8e0265944174
diff --git a/ui/src/album/AlbumDetails.js b/ui/src/album/AlbumDetails.js
index 88bfd8428..dfcb88925 100644
--- a/ui/src/album/AlbumDetails.js
+++ b/ui/src/album/AlbumDetails.js
@@ -83,7 +83,7 @@ const AlbumComment = ({ record }) => {
const formatted = useMemo(() => {
return record.comment.split('\n').map((line, idx) => (
<span key={record.id + '-comment-' + idx}>
- {line}
+ <span dangerouslySetInnerHTML={{ __html: line }} />
<br />
</span>
))