src/Utils/ConverterToHTML.php
public function toHTML($pretty_print = TRUE) {

    $this->out = new \DOMDocument('1.0', 'UTF-8');
    $this->out->formatOutput = $pretty_print;
    $field = $this->doc->getElementsByTagName('xlf:group')->item(0);

    foreach ($field->childNodes as $child) {
      if ($output = $this->convert($child)) {
        $this->out->appendChild($output);
      }
    }

    return html_entity_decode($this->out->saveHTML(), ENT_QUOTES, 'UTF-8');
  }
public function toHTML($pretty_print = TRUE) {

    $this->out = new \DOMDocument('1.0', 'UTF-8');
    $this->out->formatOutput = $pretty_print;
    $field = $this->doc->getElementsByTagName('xlf:group')->item(0);

    foreach ($field->childNodes as $child) {
      if ($output = $this->convert($child)) {
        $this->out->appendChild($output);
      }
    }

    return html_entity_decode($this->out->saveHTML(), ENT_QUOTES, 'UTF-8');
  }
public function toHTML ( $ pretty_print = TRUE ) { $ this -> out = new \ DOMDocument ( '1.0' , 'UTF-8' ) ; $ this -> out -> formatOutput = $ pretty_print ; $ field = $ this -> doc -> getElementsByTagName ( 'xlf:group' ) -> item ( 0 ) ; foreach ( $ field -> childNodes as $ child ) { if ( $ output = $ this -> convert ( $ child ) ) { $ this -> out -> appendChild ( $ output ) ; } } return html_entity_decode ( $ this -> out -> saveHTML ( ) , ENT_QUOTES , 'UTF-8' ) ; }
Converts XML to the corresponding HTML representation.

@return string
The source XML converted to HTML.
Converts XML to the corresponding HTML representation .