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? %> <% if !chapters.empty? %>
<div class="description-chapters-section"> <div class="description-chapters-section">
<hr class="description-content-separator"/> <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? %> <% 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 %> <% end %>
<div class="description-chapters-content-container"> <div class="description-chapters-content-container">