Пример 1. tidy_get_head() example
<?php $html = ' <html> <head> <title>test</title> </head> <body> <p>paragraph</p> </body> </html>';
$tidy = tidy_parse_string($html);
$head = tidy_get_head($tidy); echo $head->value; ?>
|
Результат выполнения данного примера:
<head>
<title>test</title>
</head> |