can add rel="nofollow" to links.
module ApplicationHelper
require 'rexml/document'
+ def sanitize(text)
+ Sanitize.clean(text, Sanitize::Config::OSM)
+ end
+
def htmlize(text)
return linkify(sanitize(simple_format(text)))
end
config.gem 'oauth', :version => '>= 0.3.6'
config.gem 'httpclient'
config.gem 'SystemTimer', :version => '>= 1.1.3', :lib => 'system_timer'
+ config.gem 'sanitize'
# Only load the plugins named here, in the order given. By default, all plugins
# in vendor/plugins are loaded in alphabetical order.
--- /dev/null
+Sanitize::Config::OSM = Sanitize::Config::RELAXED.dup
+
+Sanitize::Config::OSM[:add_attributes] = { 'a' => { 'rel' => 'nofollow' } }