X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3e8d8092500a3713e8dfbb4fd61fd8a95d067d20..160429e62d88810ec49ccc9c504edee675dca080:/app/helpers/application_helper.rb?ds=inline 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