Jump to content

Very Specific Magic Quotes Question


mikeschuld

Recommended Posts

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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.