I have an update system that works well. Thing is, when you type either " or ' in a post, it shows up as \" or \'. Is there a way to change it back to exclude the slash?
Converting \" into "...
If only the characters ", ', \ and the NULL character are escaped using backslashes you can use stripslashes():
| Code: |
|
$text = stripslashes($text); |
Thank you. That solved my problem. I have a lot to learn about php...
| Code: |
| stripslashes(); |
the reason it adds the slashes is to prevent the php from reading the quotes as part of the code and then messing up all the tags you have the data inside.
You can also just disable that by placing this line in your .htaccess file:
php_flag magic_quotes_gpc Off
It will soon be removed from the official PHP distribution, so get used to it.
php_flag magic_quotes_gpc Off
It will soon be removed from the official PHP distribution, so get used to it.
