moves wysiwyg sanitizer to lib [#71]

This commit is contained in:
rgarcia
2015-07-31 18:51:20 +02:00
parent e277959274
commit 90720457bd
3 changed files with 3 additions and 3 deletions

10
lib/wysiwyg_sanitizer.rb Normal file
View File

@@ -0,0 +1,10 @@
class WYSIWYGSanitizer
ALLOWED_TAGS = %w(p ul ol li strong em u s)
ALLOWED_ATTRIBUTES = []
def sanitize(html)
ActionController::Base.helpers.sanitize(html, tags: ALLOWED_TAGS, attributes: ALLOWED_ATTRIBUTES)
end
end