mod/standard/set/all/rich_html/title.rb in card-1.94.1 vs mod/standard/set/all/rich_html/title.rb in card-1.95.0
- old
+ new
@@ -16,11 +16,13 @@
def safe_name
h super
end
- def title_in_context _title=nil
- h super
+ def title_in_context title=nil
+ title = title&.html_safe
+ # escape titles generated from card names, but not those set explicitly
+ h super(title)
end
def wrapped_title title
wrap_with :span, class: classy("card-title") do
title.to_name.parts.join wrapped_joint