Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3614342
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:14:12+00:00 2026-05-18T22:14:12+00:00

I asked another question poorly so i’ll ask something else. According to http://www.c-point.com/javascript_tutorial/special_characters.htm there

  • 0

I asked another question poorly so i’ll ask something else.

According to http://www.c-point.com/javascript_tutorial/special_characters.htm there are a few escape characters such as \n and \b. However / is not one of them. What happens in this case? (\/) is the \ ignored?

I have a string in javascript 'http:\/\/www.site.com\/user'. Not that this is a literal with ' so with " it would look like \\/ anyways i would like to escape this string thus the question on what happens on non ‘special’ escape characters.

And another question is if i had name:\t me (or "name:\\t me" is there a function to escape it so there is a tab? i am using C# and these strings come from a JSON file

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T22:14:13+00:00Added an answer on May 18, 2026 at 10:14 pm

    According to Mozilla:

    For characters not listed […] a preceding backslash is ignored, but this usage is deprecated and
    should be avoided.

    https://developer.mozilla.org/en/JavaScript/Guide/Values%2c_Variables%2c_and_Literals#section_19

    The \/ sequence is not listed but there’re at least two common usages:

    <1> It’s required to escape literal slashes in regular expressions that use the /foo/ syntax:

    var re = /^http:\/\//;
    

    <2> It’s required to avoid invalid HTML when you embed JavaScript code inside HTML:

    <script type="text/javascript"><!--
    alert('</p>')
    //--></script>
    

    … triggers: end tag for element “P” which is not open

    <script type="text/javascript"><!--
    alert('<\/p>')
    //--></script>
    

    … doesn’t.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Another question asked about determining odd/evenness in C, and the idiomatic (x & 1)
This question is related to another question which I asked yesterday! List all links
This is a question I asked on another forum which received some decent answers,
(I asked this question in another way , and got some interesting responses but
Another poster asked about preferred syntax for infinite loops . A follow-up question: Why
I have another question asked her on Stack Overflow and was suggested to use
In another question I asked, raised a concern that spring framework is not type
In another question I asked for the best language for a certain purpose. Realizing
this is continued from another question i asked: Listing out JSON data? my search
This question is related to another question I asked. In my other question I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.