I have a page that I'm saving that I noticed is converting special characters in the html to their entities when its saved and then viewed. I have been trying to use htmlentities_decode and other options but cannot seem to figure out how to get it to NOT change any special characters on saving.
an example of the html looks like this:
•Los Angeles•</font></b><br><font color="#ABABAB" size="-1">°Airport°
and when saved it comes out looking like this:
•Los Angeles•
°Airport°
A portion of My save code where I'm sure I'm missing the command is:
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$data = $_POST['edit'];
if(get_magic_quotes_gpc()){
$data = stripslashes($data);}
$filevar = "/my/site/address/here/creative/lacrimes/actions";
$fp = fopen($filevar, "w") or die("Couldn't open $file for writing!");
fwrite($fp, $data) or die("Couldn't write values to file!");