This package implements the es-shim API “multi” interface. It works in an ES3-supported environment and complies with the spec. Because the String.prototype HTML methods depend on a receiver (the this ...
After installing, you can add it as a middleware to your project and hand over a map of replacements. To replace every occurence of foo with bar.