lib/card/format/context_names.rb in card-1.94.0 vs lib/card/format/context_names.rb in card-1.94.1
- old
+ new
@@ -30,11 +30,13 @@
name ||= card.name
@context_names = (context_names + name.to_name.part_names).uniq
end
def title_in_context title=nil
+ keep_safe = title&.html_safe?
title = title ? title.to_name.absolute_name(card.name) : card.name
- title.from *context_names
+ newtitle = title.from *context_names
+ keep_safe ? newtitle.html_safe : newtitle
end
end
end
end