Method: ActionText::ContentHelper#sanitize_action_text_content
- Defined in:
- actiontext/app/helpers/action_text/content_helper.rb
#sanitize_action_text_content(content) ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'actiontext/app/helpers/action_text/content_helper.rb', line 28 def sanitize_action_text_content(content) sanitizer.sanitize( content.to_html, tags: , attributes: sanitizer_allowed_attributes, scrubber: scrubber, ).html_safe end |