mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-22 13:37:24 +00:00
HTMLl.Escape the playlist subtitle
This commit is contained in:
parent
d7696574f4
commit
afb04c3bda
@ -73,7 +73,8 @@
|
|||||||
<% if !author.empty? %>
|
<% if !author.empty? %>
|
||||||
<a href="/channel/<%= playlist.ucid %>"><%= author %></a> |
|
<a href="/channel/<%= playlist.ucid %>"><%= author %></a> |
|
||||||
<% elsif !playlist.subtitle.nil? %>
|
<% elsif !playlist.subtitle.nil? %>
|
||||||
<span><%= playlist.subtitle.try &.split(" • ")[0] %></span> |
|
<% subtitle = playlist.subtitle || "" %>
|
||||||
|
<span><%= HTML.escape(subtitle[0..subtitle.rindex(" • ") || subtitle.size]) %></span> |
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= translate_count(locale, "generic_videos_count", playlist.video_count) %> |
|
<%= translate_count(locale, "generic_videos_count", playlist.video_count) %> |
|
||||||
<%= translate(locale, "Updated `x` ago", recode_date(playlist.updated, locale)) %>
|
<%= translate(locale, "Updated `x` ago", recode_date(playlist.updated, locale)) %>
|
||||||
|
Loading…
Reference in New Issue
Block a user