Replace function

hello people.
I’ve got this piece of code from someone, and it works fine, but i want to replace more characters.

String.prototype.replace = function(pattern, replacement, limit) {
			if (!limit) {
				return this.split(pattern).join(replacement);
			} else {
				var arr = this.split(pattern, limit+1);
				var str = this.substr(arr.join(pattern).length);
				return arr.join(replacement)+str;
			}
		};
		
		
		filtertitel = titel.replace("& amp", "&");

Anyone knows how i can do that ?
Thanks