Try
str = str.replace(/\\/g, '');
More Related Contents:
- Fastest method to escape HTML tags as HTML entities?
- Find and replace nth occurrence of [bracketed] expression in string
- Strip HTML from Text JavaScript
- Regular expression to get a string between two strings in Javascript
- Replace multiple strings with multiple other strings
- How can I extract a number from a string in JavaScript?
- Regular Expression to get a string between parentheses in Javascript
- Split large string in n-size chunks in JavaScript
- Converting user input string to regular expression
- Get Substring between two characters using javascript
- How to find indices of all occurrences of one string in another in JavaScript?
- Removing all script tags from html with JS Regular Expression
- Javascript – return string between square brackets
- Remove whitespace and line breaks between HTML elements using jQuery
- How to prevent Javascript injection attacks within user-generated HTML
- How to extract base URL from a string in JavaScript?
- Javascript regular expression to validate URL
- Wrap tags around http text
- How to extract a string using JavaScript Regex?
- How do I escape a string inside JavaScript code inside an onClick handler?
- How to wrap part of a text in a node with JavaScript
- Increment a number in a string in with regex
- Split string on the first white space occurrence
- Javascript unicode string, chinese character but no punctuation
- Split a string based on multiple delimiters
- Insert space before capital letters
- Extract the text out of HTML string using JavaScript
- Use RegExp to match a parenthetical number then increment it
- JavaScript: indexOf vs. Match when Searching Strings?
- Does jQuery strip some html elements from a string when using .html()?