how to remove words from a string javascript code example
Example 1: javascript remove quotes from string
var someStr = 'He said "Hello, my name is Foo"';
console.log(someStr.replace(/['"]+/g, ''));
Example 2: remove substring from string javascript
var ret = "data-123".replace('data-','');