]> git.openstreetmap.org Git - rails.git/commitdiff
marked html as html_safe to avoid htmlencoding
authorŠtefan Baebler <stefan.baebler@gmail.com>
Mon, 19 Mar 2018 06:51:24 +0000 (07:51 +0100)
committerŠtefan Baebler <stefan.baebler@gmail.com>
Mon, 19 Mar 2018 06:51:24 +0000 (07:51 +0100)
app/helpers/browse_helper.rb

index 8baca1deeab6b8b6fe7b691c0a0bd8abb1792b85..17de962fe75a1f53f79084c86a0a48a4b7ba7bfd 100644 (file)
@@ -77,7 +77,7 @@ module BrowseHelper
     elsif url = telephone_link(key, value)
       link_to h(value), url, :title => t("browse.tag_details.telephone_link", :phone_number => value)
     elsif colour_value = colour_preview(key, value)
-      %( <div class="colour-preview-box" style="background-color:#{h(value)}" title="#{h(t('browse.tag_details.colour_preview', :colour_value => colour_value))}"></div>#{h(value)} )
+      %( <div class="colour-preview-box" style="background-color:#{h(value)}" title="#{h(t('browse.tag_details.colour_preview', :colour_value => colour_value))}"></div>#{h(value)} ).html_safe
     else
       linkify h(value)
     end