instance method
sanitize_action_text_content
Ruby on Rails 6.0.6
Since v6.0.6Signature
sanitize_action_text_content(content)
No documentation comment.
Parameters
-
contentreq
Source
# File actiontext/app/helpers/action_text/content_helper.rb, line 17
def sanitize_action_text_content(content)
sanitizer.sanitize(content.to_html, tags: allowed_tags, attributes: allowed_attributes, scrubber: scrubber).html_safe
end
Defined in actiontext/app/helpers/action_text/content_helper.rb line 17
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::ContentHelper