]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/sanitize.rb
Use a better HTML sanitizer that makes sure the HTML is well formed and
[rails.git] / config / initializers / sanitize.rb
diff --git a/config/initializers/sanitize.rb b/config/initializers/sanitize.rb
new file mode 100644 (file)
index 0000000..7360e27
--- /dev/null
@@ -0,0 +1,3 @@
+Sanitize::Config::OSM = Sanitize::Config::RELAXED.dup
+
+Sanitize::Config::OSM[:add_attributes] = { 'a' => { 'rel' => 'nofollow' } }