public function saveHTML($dom, $options = array()) {
        $stream = fopen('php://temp', 'w');
        $this->save($dom, $stream, array_merge($this->getOptions(), $options));

        return stream_get_contents($stream, - 1, 0);
    }
public function saveHTML($dom, $options = array()) {
        $stream = fopen('php://temp', 'w');
        $this->save($dom, $stream, array_merge($this->getOptions(), $options));

        return stream_get_contents($stream, - 1, 0);
    }
public function saveHTML ( $ dom , $ options = array ( ) ) { $ stream = fopen ( 'php://temp' , 'w' ) ; $ this -> save ( $ dom , $ stream , array_merge ( $ this -> getOptions ( ) , $ options ) ) ; return stream_get_contents ( $ stream , - 1 , 0 ) ; }
Convert a DOM into an HTML5 string.

@param mixed $dom
The DOM to be serialized.
@param array $options
Configuration options when serializing the DOM. These include:
- encode_entities: Text written to the output is escaped by default and not all
entities are encoded. If this is set to true all entities will be encoded.
Defaults to false.

@return string A HTML5 documented generated from the DOM.
Convert a DOM into an HTML5 string .