Any suggestion on how to remove text content in brackets?
Example:
<span id="new">Welcome [something.....] home</span>
<span id="new">The Jeep is (asdjfl... ect) nice</span>
var myString = document.getElementsByClassName('new')[0];
myString.replace(/ *\[[^\]]*]/, '');
Goal:
- Welcome home
- The Jeep is nice