mikeschuld Posted May 12, 2006 Share Posted May 12, 2006 I am writing a tab manager for my site that essentially has a textarea for code input and a textbox for the tab title and the scripts auto add tabs and their panels to be shown and hidden. My problem is that when I enter php code into the textarea (or html for that matter) my quotes are being \" because of magic quotes.This would not normally be that much of a problem, since I can just turn off magic quotes, but some of the php I have is also needing those quotes (ex. print("some random stuff \"kicks\" butt."); ) to be kept in there, and they are converted back to the normal quote character essentially breaking the php and not allowing the tab to run all the way.I wrote my own stripslashes to go in and replace certain quotes that I know will be incorrectly converted, but I just can't seem to get them all to work all the time. Is there any solution for this that you know of? Quote Link to comment Share on other sites More sharing options...
hvle Posted May 13, 2006 Share Posted May 13, 2006 take a look at addslashes(), stripslashes(), addcslashes(), stripsslashes() in the php function manual. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.