Method: ActionText::ContentHelper#sanitize_content_attachment

Defined in:
actiontext/app/helpers/action_text/content_helper.rb

#sanitize_content_attachment(content_attachment) ⇒ Object



19
20
21
22
23
24
25
26
# File 'actiontext/app/helpers/action_text/content_helper.rb', line 19

def sanitize_content_attachment(content_attachment)
  sanitizer.sanitize(
    content_attachment,
    tags: sanitizer_allowed_tags,
    attributes: sanitizer_allowed_attributes,
    scrubber: scrubber,
  )
end