Skip to content

Commit

Permalink
strip tags from info_box (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
SepsiLaszlo authored Sep 27, 2020
1 parent 4228707 commit ba8a14d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/decorators/user_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def webpage
private

def info_box(content, icon)
icon = icon_tag(icon)
content_tag(:h4, "#{icon} #{sanitize content.to_s}".html_safe, class: 'uk-h4')
content_tag(:h4, class: 'uk-h4') do
icon_tag(icon) + content
end
end
end

0 comments on commit ba8a14d

Please sign in to comment.