X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6bfa897cfc38bcf8cb7c6a8649101ea699ea5c5a..5451310d3cbca536c979e840d169882cf129c61c:/app/helpers/application_helper.rb diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 9d2ae0071..d805e27ad 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,6 +1,10 @@ module ApplicationHelper def htmlize(text) - return sanitize(auto_link(simple_format(text), :link => :urls, :href_options => { :rel => "nofollow" })) + return linkify(sanitize(simple_format(text))) + end + + def linkify(text) + return auto_link(text, :link => :urls, :html => { :rel => "nofollow" }) end def html_escape_unicode(text)