Skip to content
M. Mikkel Rummelhoff edited this page Mar 5, 2018 · 1 revision

This filter will remove any elements matching the given selector(s).

Usage/examples

Remove all img tags

{{ entry.body | retconRemove( 'img' ) }}

Remove all img and span tags

{{ entry.body | retconRemove( [ 'img', 'span' ] ) }}

Remove all elements with the classname ".foo"

{{ entry.body | retconRemove( '.foo' ) }}

Parameters

@selectors Mixed
String value or Array of string values
Examples: "p" ".foo" "#bar" "div.baz"