views:

310

answers:

1

when I retrieve the data from the textarea in the form,

<?php $editor_data = $_POST['editor1']; ?>

this works fine locally, but the remote server returns the text mixing up the style with escape slashes. like this:

<h3 style=\"color: blue;\"> Initial value.</h3>

I've no idea what I'm doing wrong. do you have any idea?

thanks!

egorbrandt

+2  A: 

See: http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc

You can use stripslashes function (http://www.php.net/stripslashes) if you cannot modify php.ini

Cesar
thank you very much for helping me out with this.
egorbrandt
Don't forget to mark it answered. Thank you.
Cesar