Function.tidy-get-html

Aus PHP-Wiki

Wechseln zu: Navigation, Suche
Autoversicherung Online - Kostenloser Autoversicherungsvergleich und RechtsschutzversicherungEasy Baby Regal Easy Home . Autoversicherung Vergleichen Online - Kostenloser Autoversicherungsvergleich

tidy_get_html — Returns a tidyNode Object starting from the <html> tag of the tidy parse tree

Description

Procedural style:

Beschreibung

tidyNode tidy_get_html ( tidy $object )


Object oriented style: tidyNode tidy->html ( void ) This function returns a tidyNode object starting from the <html> tag of the tidy parse tree. Beispiel #1 tidy_get_html() example <?php
$html = '
<html>
  <head>
    <title>test</title>
  </head>
  <body>
    <p>paragraph</p>
  </body>
</html>';

$tidy = tidy_parse_string($html);

$html = tidy_get_html($tidy);
echo $html->value;
?> Das oben gezeigte Beispiel erzeugt folgende Ausgabe: <html> <head> <title>test</title> </head> <body> <p>paragraph</p> </body> </html> Hinweis: Diese Funktion wird nur von der Zend Engine 2 (PHP >= 5.0.0) unterstützt. See also tidy_get_body() and tidy_get_head().

Persönliche Werkzeuge