Automattic\WooCommerce\EmailEditor\Integrations\Utils
Dom_Document_Helper::get_outer_html
Returns the outer HTML of the given element.
Method of the class: Dom_Document_Helper{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Dom_Document_Helper = new Dom_Document_Helper(); $Dom_Document_Helper->get_outer_html( $element ): string;
- $element(DOMElement) (required)
- The element to get the outer HTML from.
Dom_Document_Helper::get_outer_html() Dom Document Helper::get outer html code WC 10.6.2
public function get_outer_html( \DOMElement $element ): string {
return (string) $this->dom->saveHTML( $element );
}