salve a tutti,
ho un file update.php che recupera una textarea del file precedente e sovrascrive quei dati su un file .txt già esistente. Ve ne riassumo le parti interessate:
ora, se nella textarea inserisco del codice html tipo <a href="link" etc... non me la visualizza correttamente, poichè php inserisce un \ davanti ad ogni apice doppio, come di consueto.Codice PHP:
$html = $_POST['html']; // la textarea
$filename = './html.txt';
$handle = fopen($filename, 'w');
if(fwrite($handle, $html)) {
echo 'tutto bene';
} else {
echo 'errore...';
}
fclose($handle);
come posso fare?
grazie a tutti, ciao.