Question: Is there a way to replace the normal text within a table element that is placed within the body of the HTML?

Like replacing "hello" with "hi"?

Please only use **JavaScript** without **jQuery**.

Answer: 
I had the same problem. I wrote my own function using replace on innerHTML, but it would screw up anchor links and such.

To make it work correctly I used a [library](https://github.com/padolsey/findAndReplaceDOMText) to get this done.

The library has an awesome API. After including the script I called it like this:

```
findAndReplaceDOMText(document.body, {
  find: 'texttofind',
  replace: 'texttoreplace'
  }
);

```
I was trying to replace a really large string and for some reason regular expressions were throwing some errors/exceptions. 

So I found this alternative to regular expressions which also runs pretty fast. At least it was fast enough for me: 

```
var search = "search string";
var replacement = "replacement string";

document.body.innerHTML = document.body.innerHTML.split(search).join(replacement)

```

src: [How to replace all occurrences of a string in JavaScript?](https://stackoverflow.com/questions/1144783/how-to-replace-all-occurrences-of-a-string-in-javascript)