This filter will remove the parent node for any matching selectors (retaining all child nodes for both parent and affected element)
Unwrap all img tags
{{ entry.body | retconUnwrap( 'img' ) }}
Unwrap all img and span tags
{{ entry.body | retconUnwrap( [ 'img', 'span' ] ) }}
Unwrap all elements with the classname ".foo"
{{ entry.body | retconUnwrap( '.foo' ) }}
@selectors Mixed String value or Array of string values Examples: "p" ".foo" "#bar" "div.baz"
"p"
".foo"
"#bar"
"div.baz"
There was an error while loading. Please reload this page.
Introduction, basic usage and settings
Images
DOM manipulation