X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/41dfa42edd18b40226b7e622d7f9ab563367f0ef..17a7c69e8dfefb5dda2a9f57d6ea3c879d4568f4:/app/helpers/application_helper.rb diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e10650ada..d805e27ad 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,6 +1,10 @@ module ApplicationHelper def htmlize(text) - return auto_link(sanitize(simple_format(text)), :link => :urls, :html => { :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)