Escape warning messages for disabled comments

This commit is contained in:
syeopite 2023-08-08 23:12:26 -07:00 committed by Fijxu
parent 00d1a8b967
commit facda9a51e
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4

View File

@ -300,7 +300,7 @@ we're going to need to do it here in order to allow for translations.
<div id="comments" class="comments">
<% if (params.comments <=> ["", ""]) == 0 %>
<div id="comments-disabled-message" class="h-box v-box">
<p><b><%= I18n.translate(locale, "invidious_comments_disabled_text") %></b></p>
<p><b><%= HTML.escape(I18n.translate(locale, "invidious_comments_disabled_text")) %></b></p>
</div>
<% 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 %>
<div id="comments-turned-off-on-video-message" class="h-box v-box">
<p><b><%= I18n.translate(locale, "youtube_comments_disabled_text") %></b></p>
<p><b><%= HTML.escape(I18n.translate(locale, "youtube_comments_disabled_text")) %></b></p>
<p>
<b>
<a href="javascript:void(0)" data-comments="reddit" id="try-reddit-comments-link">