hi there! i want to ask if someone in here got an idea on how to remove the \ in apostrophes?
because everytime i access content in my database and if it has ' it also displays \
for example cricket\'s should be crickets
HELP! how to remove / in apostrophe
Moderator: General Moderators
Re: HELP! how to remove / in apostrophe
Use stripslashes(). Or put this at the top of your script (this is the method I recommend):
You can also mess around with your php.ini file and set everything related to magic_quotes to off.
Code: Select all
set_magic_quotes_runtime( 0 );