« get me outta code hell

content: generateAdditionalNamesBoxItem: sanitize album name - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-15 10:11:06 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-15 10:11:38 -0400
commit7428243928735ab89e1fd3d450988269e765d0af (patch)
tree1277a664900e64a02f9b0d52813b033b5d1c2e54 /src/content/dependencies
parent6572bd0951d506e4a91366da2ae8d710d5a13a93 (diff)
content: generateAdditionalNamesBoxItem: sanitize album name
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/generateAdditionalNamesBoxItem.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content/dependencies/generateAdditionalNamesBoxItem.js b/src/content/dependencies/generateAdditionalNamesBoxItem.js
index bb4c8477..189550c2 100644
--- a/src/content/dependencies/generateAdditionalNamesBoxItem.js
+++ b/src/content/dependencies/generateAdditionalNamesBoxItem.js
@@ -53,7 +53,8 @@ export default {
             trackLink: relations.trackLinks,
             albumName: data.albumNames,
           }).map(({trackLink, albumName}) =>
-              trackLink.slot('content', albumName)));
+              trackLink.slot('content',
+                language.sanitize(albumName))));
     }
 
     if (accentParts.length > 2) {