diff --git a/overcomplicatedStatuses.js b/overcomplicatedStatuses.js
index 53cf1cf..297d542 100644
--- a/overcomplicatedStatuses.js
+++ b/overcomplicatedStatuses.js
@@ -24,7 +24,7 @@ function get_img_url(activity, size = "large_image") {
return null
}
-function makeCompat(string) {
+function makeCompat(string="") {
return string.replaceAll("<", "<").replaceAll(">", ">")
}
@@ -136,7 +136,7 @@ module.exports = {
activity.assets = { "large_text": "", "small_text": "" }
}
- var text1 = onlyIfExists("
" + activity.song + "", activity.song) || activity.details
+ var text1 = onlyIfExists("
" + makeCompat(activity.song) + "", activity.song) || activity.details
var text2 = onlyIfExists("By: " + activity.artist, activity.artist) || activity.state
var text3 = onlyIfExists("On: " + activity.album, activity.album != activity.song && activity.album)