Mark sanitized text as HTML safe
This commit is contained in:
parent
1d6051d08b
commit
45ec042c90
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue