javascropt replace characters code example
Example 1: js replace characters in a string
var str = "Original string!";
var str = str.replace("Original", "New");
Example 2: replace all javascript
str.split(search).join(replacement);
var str = "Original string!";
var str = str.replace("Original", "New");
str.split(search).join(replacement);