Commit 301e176e authored by Mike Greiling's avatar Mike Greiling

prevent formatted milestone date string from having html escaped

parent ec6f091e
...@@ -89,10 +89,12 @@ module MilestonesHelper ...@@ -89,10 +89,12 @@ module MilestonesHelper
content = time_ago.gsub(/\d+/) { |match| "<strong>#{match}</strong>" } content = time_ago.gsub(/\d+/) { |match| "<strong>#{match}</strong>" }
content.slice!("about ") content.slice!("about ")
content << " remaining" content << " remaining"
content.html_safe
elsif milestone.start_date && milestone.start_date.past? elsif milestone.start_date && milestone.start_date.past?
days = milestone.elapsed_days days = milestone.elapsed_days
content = content_tag(:strong, days) content = content_tag(:strong, days)
content << " #{'day'.pluralize(days)} elapsed" content << " #{'day'.pluralize(days)} elapsed"
content.html_safe
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment