instance method
sanitize_action_text_content
Ruby on Rails 8.1.2
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 28
def sanitize_action_text_content(content)
sanitizer.sanitize(
content.to_html,
tags: sanitizer_allowed_tags,
attributes: sanitizer_allowed_attributes,
scrubber: scrubber,
).html_safe
end
Defined in actiontext/app/helpers/action_text/content_helper.rb line 28
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::ContentHelper