diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 583f81334..f5c368217 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -300,7 +300,7 @@ we're going to need to do it here in order to allow for translations.
<% if (params.comments <=> ["", ""]) == 0 %>
-

<%= I18n.translate(locale, "invidious_comments_disabled_text") %>

+

<%= HTML.escape(I18n.translate(locale, "invidious_comments_disabled_text")) %>

<% else %> <% if video.comments? %> @@ -315,7 +315,8 @@ we're going to need to do it here in order to allow for translations. <% end %> <% else %>
-

<%= I18n.translate(locale, "youtube_comments_disabled_text") %>

+

<%= HTML.escape(I18n.translate(locale, "youtube_comments_disabled_text")) %>

+