I'm trying to take a Textarea that contains HTML and load it in a new window, so the user can see their HTML code in real time.
However, backslash and quotes are both getting a backslash infront of them when displayed on the newpage. (e.g. a quote comes out as \" and a backslash comes out as \)

Is there anywayt to remove these extra backslashes?

Right now I'm just posting a variable and the echoing it.

<?php
extract($_POST);

echo "$htmlCreate";
?>

Thanks for any help.

    [man]stripslashes/man ... it's likely you need to use this function, probably because "magic_quotes_gpc" is set to ON in php.ini ...

    $var=stripslashes($var);
    
    //or, 
    
    echo stripslashes($var);

    HTH, 😉

      Sorry, too much chatting on AIM for me.

      Thank you for the help sir, it worked great.

        Write a Reply...