question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Escape quotes not working

See original GitHub issue

Challenge Quoting Strings with Single Quotes has an issue. User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:


var myStr ='<a href="http://www.example.com"  target= "_blank">Link</a>';



Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
cdranicommented, Feb 23, 2017

@pamela113 @Marmiz: The test is quite strict. It won’t accept a space between target= and "_blank" or two spaces between attributes, like there are between href="http://www.example.com" and target (which it shouldn’t so as to conform to accepted standards).

0reactions
pamela113commented, Feb 24, 2017

Hi, Thanks Joseph!! I logged out and logged back in and it worked. Pam

On Thu, Feb 23, 2017 at 7:48 PM, Lance notifications@github.com wrote:

@jdeprey https://github.com/jdeprey Please do not post your solution on here. You could help people at FreeCodeCamp Chat Room or Forum. GitHub Issues are for reporting bugs on the website only.

Happy Coding!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/freeCodeCamp/freeCodeCamp/issues/13531#issuecomment-282179470, or mute the thread https://github.com/notifications/unsubscribe-auth/AVlJhPT0bKMPOpm4m1HAH5z90idrO65vks5rfjb4gaJpZM4MJV28 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

windows - Escape double quotes in parameter - Stack Overflow
Another way to escape quotes (though probably not preferable), which I've found used in certain places is to use multiple double-quotes.
Read more >
Apostrophes and double quotes don't show up until I type the ...
For Windows 10, the fix from control panel did not work. I have to use "Settings" -> "Region & Language". Then, selecting on...
Read more >
How to escape quotes in shell? - Unix & Linux Stack Exchange
It's done by finishing already opened one ( ' ), placing escaped one ( \' ), then opening another one ( ' )....
Read more >
Quotes, Escape Characters, Delimiters - Windows CMD - SS64
How-to: Escape Characters, Delimiters and Quotes at the Windows command line. ... The \ escape can cause problems with quoted directory paths that...
Read more >
about Quoting Rules - PowerShell | Microsoft Learn
To prevent the substitution of a variable value in a double-quoted string, use the backtick character ( ` ), which is the PowerShell...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found