instance method sanitize_action_text_content

Ruby on Rails 7.0.10

Since v6.0.6

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

sanitize_action_text_content(content)

No documentation comment.

Parameters

content req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close