diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 9d4c70fe..2d096361 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 %>
-

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

+

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

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

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

+

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