I need to wrap each asterisks on a page with . The few things I\'ve tried don\'t work. I think what this boils down to is
Without using jQuery so it might be a little faster, and definitely not dependent on libs:
(function(str,e){ var regex = new RegExp(str, 'gi'); e.innerHTML = e.innerHTML.replace(regex, '*'); })('*',document.body);