]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/application_helper.rb
merge 19601:19888 of rails_port into the openID branch
[rails.git] / app / helpers / application_helper.rb
index e10650ada1fa3cde95956725f5e679f146446156..d805e27adee83bfe8518ec846b943940e5fd7dbb 100644 (file)
@@ -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)