class SimpleFormat
include ActionView::Helpers::TextHelper
+ include ActionView::Helpers::OutputSafetyHelper
def sanitize(text)
Sanitize.clean(text, Sanitize::Config::OSM).html_safe
link_proportion = 0
end
- return [link_proportion - 0.2, 0.0].max * 200 + link_count * 20
+ return [link_proportion - 0.2, 0.0].max * 200 + link_count * 40
end
protected
else
"<a rel=\"nofollow\" href=\"#{link}\">#{link}</a>"
end
- end
+ end
end
end