When returning text after PDO queries, I am getting a slash in front of my apostrophes and such but I am on wordpress and not able to edit the php.ini to remove magic_quotes etc. So I was hoping there was a function that can escape special characters. I tried addslashes(), but you can see the negative results below. Any programmatic approaches or functions or methods I can use to fix this?
//as is...
Hey..i\’m getting a slash in front of my apostrophe
//after adding addslashes()
Hey..i\\\’m getting too many slashes now!