Menu

#21 php cannot print " without \"

open
nobody
None
5
2002-06-07
2002-06-07
Anonymous
No

using test_embedded.php, everything looks fine in the
source editing window but when i post it it generates \
character before " .which breaks all urls. is there a way i
can make it stop print \ before ".

Example: if i insert a link to http://abc.com
after posting it looks like <A href=\"http://abc.com/\"
target=_new>the</A> in the source of the posted page.

Any help on this will be appriciated.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    You would need to use the strip slashes function of PHP

     
  • Frank

    Frank - 2003-07-27

    Logged In: YES
    user_id=831486

    Try this :

    $SubText=stripslashes($HTTP_POST_VARS["text"]);

    $SubText is now without \

     

Log in to post a comment.

MongoDB Logo MongoDB