You need to escape your slash.
/\//g
More Related Contents:
- javascript slice without using built in method [closed]
- How can I upload files asynchronously with jQuery?
- Why does my JavaScript code receive a “No ‘Access-Control-Allow-Origin’ header is present on the requested resource” error, while Postman does not?
- Function overloading in Javascript – Best practices [closed]
- What is the purpose of a plus symbol before a variable?
- Concept – Distilling how a promise works?
- TypeError: p.easing[this.easing] is not a function
- Getting a union of two arrays in JavaScript [duplicate]
- How to unbind a listener that is calling event.preventDefault() (using jQuery)?
- JavaScript displaying a float to 2 decimal places
- Javascript timestamp to relative time
- Hide scrollbar while still being able to scroll with mouse/keyboard [duplicate]
- JavaScript/jQuery check broken links
- How can I create and style a div using JavaScript?
- Are JavaScript Promise asynchronous?
- Javascript compare 3 values
- Is optimizing JavaScript for loops really necessary?
- JavaScript: Inline Script with SRC Attribute?
- How can I toggle a class on click with React?
- Why do multiple `.appendTo` calls on a newly created jQuery element only append it once?
- Get user input through Node.js console
- AngularJS: Understanding design pattern
- What are the advantages/disadvantages for creating a top level function in ES6 with arrows or without?
- Context-preserving eval
- decodeURIComponent vs unescape, what is wrong with unescape?
- Can I write files with HTML5/JS?
- In JQuery, Is it possible to get callback function after setting new css rule?
- JavaScript primitive types and corresponding objects
- create a text file using javascript
- Maintain cursor position in contenteditable div [duplicate]