lorsque j'execute en local ceci (avec easyphp) avec la phrase
Un \'apostrophe\' en <strong>gras</strong>
<?
$textf = "";
if (isset($_GET['value']))
{
$text = $_POST['text'];
$textf = htmlentities($text);
}
?>
<html>
<head>
<title>Document sans titre</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form" method="post" action="index.php?value=ok">
<textarea name="text" cols="50" rows="10"></textarea>
<br>
<br>
<input type="submit" name="Submit" value="Envoyer">
</form>
Texte apres<br>
<br>
<textarea cols="50" rows="10"><? echo($textf); ?></textarea>
<br>
<br>
<? echo htmlentities($text);?>
</body>
</html>
j'obtiens dans les deux cas
au lieu deUn \'apostrophe\' en <strong>gras</strong>
comme marqué dans la docUn 'apostrophe' en <strong>gras</strong>
http://fr.php.net/manual/fr/function.htmlentities.php
pk ? pouvez vous m'expliquer ?
merci par avance