Class: Avo::Fields::LexxyField::ShowComponent
- Inherits:
-
ShowComponent
- Object
- ShowComponent
- Avo::Fields::LexxyField::ShowComponent
- Defined in:
- app/components/avo/fields/lexxy_field/show_component.rb
Instance Method Summary collapse
-
#sanitized_value ⇒ Object
Lexxy content can carry tags the default sanitizer strips (video, audio, tables), so sanitize with Action Text's allowlist, which the lexxy gem extends with those tags.
Instance Method Details
#sanitized_value ⇒ Object
Lexxy content can carry tags the default sanitizer strips (video, audio, tables), so sanitize with Action Text's allowlist, which the lexxy gem extends with those tags.
7 8 9 10 11 12 13 14 15 |
# File 'app/components/avo/fields/lexxy_field/show_component.rb', line 7 def sanitized_value if defined?(ActionText::ContentHelper) helpers.sanitize rendered_value, tags: ActionText::ContentHelper., attributes: ActionText::ContentHelper.allowed_attributes else helpers.sanitize rendered_value end end |