Answers for "replace all dashes javascriptwith space javascript"

7

javascript replace spaces with dashes

title = title.replace(/\s/g , "-");
Posted by: Guest on August-24-2020
0

replace all spaces with dash in javascript

title = title.replace(/\s/g , "-");
var html = "<div>" + title + "</div>";
// ...
Posted by: Guest on July-16-2020

Code answers related to "replace all dashes javascriptwith space javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language