I am using TinyMCE to edit a html that has the text for the main page, the only problem is, it puts slashes all through it, I tried the stripslashes() but I can't seem to get it to work. here is what I have:
Code: Select all
<?php
$fp = fopen('../index_text.html', 'w+');
stripslashes($elm2);
fwrite($fp, $elm2);
fclose($fp);
header('Location: index.php');
?>