-
Notifications
You must be signed in to change notification settings - Fork 9
Remove
M. Mikkel Rummelhoff edited this page Mar 5, 2018
·
1 revision
This filter will remove any elements matching the given selector(s).
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' ) }}
@selectors Mixed
String value or Array of string values
Examples: "p"
".foo"
"#bar"
"div.baz"