Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts

    This board eats backslashes

    I just found out that the PHP syntax highlighting vB Code does not ensure that backslashes are treated like they were entered in the form. They simply get stripped from the code.

    That's quite a nuisance if you want to enter regular expressions. Anyway, they do appear if you enter the each backslash twice, like "escaping" the backslashes.

    Just thought I'd mention it in case someone else is wondering what's happening. Perhaps a hint in the vB code help page would be good.
    If you think that my message should be better redirected to vbBulletin itself, please tell me so.

  • #2
    WA
    WA is offline
    Administrator
    Join Date
    Mar 2002
    Posts
    2,596
    Thanks
    2
    Thanked 19 Times in 18 Posts
    Hi:
    There are a few other characters VB seems to eat as well. I'm looking forward to VB3 to help address these issues. Oh yes, and the new karma system as well
    - George
    - JavaScript Kit- JavaScript tutorials and 400+ scripts!
    - JavaScript Reference- JavaScript reference you can relate to.

  • #3
    New Coder
    Join Date
    Jun 2002
    Location
    Stuck in the inner reaches of my mind
    Posts
    84
    Thanks
    0
    Thanked 0 Times in 0 Posts
    this is because they use stripslashes(); after they run it through the "colorizing" part to remove the ones they added...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •