AMP_DOM_Utils::get_content_from_dom

AMP_DOM_Utils::get_content_from_dom( AmpProjectDomDocument $dom )

Description #

Return valid HTML *body* content extracted from the Dom\Document passed as a parameter.

See also

  • {@see AMP_DOM_Utils::get_content_from_dom_node()}: Reciprocal function.

Parameters #

$dom

(Required) Represents an HTML document from which to extract HTML content.


Return #

(string) Returns the HTML content of the body element represented in the DomDocument.


Changelog #

Changelog
Version Description
0.2 Introduced.