Escape localization for desc chapters widget

This commit is contained in:
syeopite 2023-08-22 21:15:07 -07:00
parent e53a483bcb
commit 6f295bb33b
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A

View File

@ -1,10 +1,10 @@
<% if !chapters.empty? %>
<div class="description-chapters-section">
<hr class="description-content-separator"/>
<h4><%=translate(locale, "video_chapters_label")%></h4>
<h4><%=HTML.escape(translate(locale, "video_chapters_label"))%></h4>
<% if video.automatically_generated_chapters? %>
<h5><%=translate(locale, "video_chapters_auto_generated_label")%> </h5>
<h5><%=HTML.escape(translate(locale, "video_chapters_auto_generated_label"))%> </h5>
<% end %>
<div class="description-chapters-content-container">