X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ed54379218d21b9bd52933903e8cb504a15dfe7e..fc25c3d412829774abf0454e4dcc92e41f47454c:/app/helpers/application_helper.rb diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e285215b8..8073c2583 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -10,11 +10,11 @@ module ApplicationHelper end def linkify(text) - return auto_link(text, :link => :urls, :html => { :rel => "nofollow" }) + return Rinku.auto_link(text, :urls, tag_options(:rel => "nofollow")) end def html_escape_unicode(text) - chars = ActiveSupport::Multibyte::Chars.u_unpack(text).map do |c| + chars = ActiveSupport::Multibyte::Unicode.u_unpack(text).map do |c| c < 127 ? c.chr : "&##{c.to_s};" end