]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/application_helper.rb
Treat all newly entered blocks of text as Markdown
[rails.git] / app / helpers / application_helper.rb
index 4aec9f5c16811e79f14f68d9133ea9e30341d2a3..7a72932f55affbbd6550adc3a50a394bb93cfc1d 100644 (file)
@@ -1,14 +1,6 @@
 module ApplicationHelper
   require 'rexml/document'
 
-  def sanitize(text)
-    Sanitize.clean(text, Sanitize::Config::OSM).html_safe
-  end
-
-  def htmlize(text)
-    return linkify(sanitize(simple_format(text)))
-  end
-
   def linkify(text)
     if text.html_safe?
       Rinku.auto_link(text, :urls, tag_options(:rel => "nofollow")).html_safe