]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/application_helper.rb
Haiti presets
[rails.git] / app / helpers / application_helper.rb
index 2eebec1708378663a5bc4f67ad828ec5dd847da9..d805e27adee83bfe8518ec846b943940e5fd7dbb 100644 (file)
@@ -1,6 +1,10 @@
 module ApplicationHelper
   def htmlize(text)
-    return sanitize(auto_link(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)