html.php

<form action='html.php'>
Entrer ici le caractère dont vous voulez un équivalent HTML: <<textarea name="txt" rows="20" cols="80"></textarea>
<?
$x=htmlentities($txt);
$x=eregi_replace("&", "&amp;", $x);
if ($txt) {
echo "<h1>Le caractère <b>$txt</b> s'encode <pre>$x</pre></h1>";
}
?>
<br><input type=submit>
</form>
 
info/html_php.txt · Dernière modification: 2008/11/11 11:37 (modification externe)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki