AMP_Base_Embed_Handler::unwrap_p_element

AMP_Base_Embed_Handler::unwrap_p_element( DOMElement $node )

Description #

Replace an element's parent with itself if the parent is a <p> tag which has no attributes and has no other children.

This usually happens while wpautop() processes the element.

See also

  • {@see AMP_Tag_And_Attribute_Sanitizer::remove_node()}

Parameters #

$node

(Required) Node.



Changelog #

Changelog
Version Description
2.0.6 Introduced.