<?php

include('global.php');

ShowHeader(array('Formátovač HTML' => '/format_html.php'), 'Formátovač HTML kódu');

if(array_key_exists('code', $_POST))
{
  $Output .= '<pre>'.htmlspecialchars(FormatOutput($_POST['code'])).'</pre>';
} else
$Output .= '<strong>Vložte kód, který chcete zformátovat</strong><br>'.
'<form method="post" action="format_html.php">
<textarea name="code" cols="80" rows="30"></textarea><br>
<input type="submit" value="Odeslat">
</form>';

ShowFooter();

