From 45ec042c90d00f8e7b116fa2630af5722111fb2b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 15 Nov 2011 09:58:10 +0000 Subject: [PATCH 1/1] Mark sanitized text as HTML safe --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5