<a href=\"/pain\/">
The second double quote isn’t escaped. \"
not /"
.
It would probably be more reliable to store these quotes in a plain text file or database, and escape them automatically. Escaping a lot of text by hand is a chore.
More Related Contents:
- Is it possible to display a custom message in the beforeunload popup?
- new Date() is working in Chrome but not Firefox
- Detecting the onload event of a window opened with window.open
- How can I set default homepage in FF and Chrome via javascript?
- style.display=’none’ doesn’t work on option tags in chrome, but it does in firefox
- Cryptic “Script Error.” reported in Javascript in Chrome and Firefox
- Breakpoint on property change
- How to getting browser current locale preference using javascript?
- How to prevent Javascript injection attacks within user-generated HTML
- JavaScript Time Zone is wrong for past Daylight Saving Time transition rules
- How JavaScript closures are garbage collected
- Date parsing in javascript is different between safari and chrome
- Does execCommand SaveAs work in Firefox?
- Open IE browser in Firefox/Chrome page
- Javascript regex (negative) lookbehind not working in firefox
- Animated gif only loops once in Chrome and Firefox
- What happens to code after a javascript redirect (setting window.location.href)?
- Add to browser favorites/bookmarks from JavaScript but for all browsers (mine doesn’t work in Chrome)?
- Chrome – Fetch API cannot load file. How to workaround?
- Why is a function declaration within a condition block hoisted to function scope in Chrome but not Firefox?
- How can I inspect disappearing element in a browser?
- Get cursor or text position in pixels for input element
- Why are function declarations handled differently in different browsers?
- How to get result of console.trace() as string in javascript with chrome or firefox?
- Silence net::ERR_CONNECTION_REFUSED
- parsings strings: extracting words and phrases [JavaScript]
- How to detect if user has enabled full screen in browser
- How to use “segments” mode at SourceBuffer of MediaSource to render same result at Chomium, Chorme and Firefox?
- chrome Pop-up blocker when to re-check after allowing page
- Chrome won’t play WebAudio getUserMedia via WebRTC/Peer.js