class SimpleFormat
include ActionView::Helpers::TextHelper
+ include ActionView::Helpers::OutputSafetyHelper
def sanitize(text)
Sanitize.clean(text, Sanitize::Config::OSM).html_safe
else
"<a rel=\"nofollow\" href=\"#{link}\">#{link}</a>"
end
- end
+ end
end
end