@ 2015-06-10T13:24:56Z <?php
$html = <<<HTML
<form class="searchform" method="get" action="../search/search.php">
<input id="searchbox" type="text" name="zoom_query" size="15">
<input id="searchgo" type="submit" value="search">
</form>
HTML;
$doc = new DOMDocument();
$doc->loadHTML($html, LIBXML_HTML_NODEFDTD);
echo $doc->saveHTML();
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 5.4.0 - 5.4.45 , 5.5.24 - 5.5.35 , 5.6.8 - 5.6.21 , 7.0.0 - 7.0.20 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 <html><body><form class="searchform" method="get" action="../search/search.php">
<input id="searchbox" type="text" name="zoom_query" size="15">
<input id="searchgo" type="submit" value="search">
</form></body></html>
Output for 5.0.0 - 5.0.5 , 5.1.0 - 5.1.1 , 5.1.3 - 5.1.6 , 5.2.0 - 5.2.17 , 5.3.0 - 5.3.29 Notice: Use of undefined constant LIBXML_HTML_NODEFDTD - assumed 'LIBXML_HTML_NODEFDTD' in /in/qs4TC on line 11
Warning: DOMDocument::loadHTML() expects exactly 1 parameter, 2 given in /in/qs4TC on line 11
Output for 5.1.2 Notice: Use of undefined constant LIBXML_HTML_NODEFDTD - assumed 'LIBXML_HTML_NODEFDTD' in /in/qs4TC on line 12
Warning: DOMDocument::loadHTML() expects exactly 1 parameter, 2 given in /in/qs4TC on line 12
Output for 4.3.2 - 4.3.11 , 4.4.0 - 4.4.1 , 4.4.3 - 4.4.9 Fatal error: Cannot instantiate non-existent class: domdocument in /in/qs4TC on line 10
Process exited with code 255 . Output for 4.4.2 Fatal error: Cannot instantiate non-existent class: domdocument in /in/qs4TC on line 11
Process exited with code 255 . Output for 4.3.0 - 4.3.1 Fatal error: Cannot instantiate non-existent class: domdocument in /in/qs4TC on line 10
preferences:dark mode live preview
258.2 ms | 401 KiB | 356 Q