diff --git a/src/invidious/views/playlist.ecr b/src/invidious/views/playlist.ecr
index 3bc7596e..24ba437d 100644
--- a/src/invidious/views/playlist.ecr
+++ b/src/invidious/views/playlist.ecr
@@ -73,7 +73,8 @@
<% if !author.empty? %>
<%= author %> |
<% elsif !playlist.subtitle.nil? %>
- <%= playlist.subtitle.try &.split(" • ")[0] %> |
+ <% subtitle = playlist.subtitle || "" %>
+ <%= HTML.escape(subtitle[0..subtitle.rindex(" • ") || subtitle.size]) %> |
<% end %>
<%= translate_count(locale, "generic_videos_count", playlist.video_count) %> |
<%= translate(locale, "Updated `x` ago", recode_date(playlist.updated, locale)) %>