From: Tom Hughes Date: Tue, 15 Nov 2011 09:58:10 +0000 (+0000) Subject: Mark sanitized text as HTML safe X-Git-Tag: live~6565 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/45ec042c90d00f8e7b116fa2630af5722111fb2b?hp=1d6051d08b5268a30122a6ca9ea04f6a03544737 Mark sanitized text as HTML safe --- diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b77ac8721..c4395317e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -2,7 +2,7 @@ module ApplicationHelper require 'rexml/document' def sanitize(text) - Sanitize.clean(text, Sanitize::Config::OSM) + Sanitize.clean(text, Sanitize::Config::OSM).html_safe end def htmlize(text)