src/WPametu/Utility/Formatter.php
public static function to_string( \DOMDocument $dom ) {
		$html5 = new HTML5();
		preg_match( '/<body>(.*)<\/body>/s', $html5->saveHTML( $dom ), $match );

		return $match[1];
	}
public static function to_string( \DOMDocument $dom ) {
		$html5 = new HTML5();
		preg_match( '/<body>(.*)<\/body>/s', $html5->saveHTML( $dom ), $match );

		return $match[1];
	}
public static function to_string ( \ DOMDocument $ dom ) { $ html5 = new HTML5 ( ) ; preg_match ( '/<body>(.*)<\/body>/s' , $ html5 -> saveHTML ( $ dom ) , $ match ) ; return $ match [ 1 ] ; }
Return body as string

@param \DOMDocument $dom

@return mixed
Return body as string