X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/30ae9fb928abd1b2a30f5b1c0253bc195ffff14d..94f19ce3b32d70c499893f8ffb9592a9f0a54f7a:/app/helpers/application_helper.rb diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 7a4953f0f..2ed50216f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,6 +1,10 @@ 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