javascript remove any html tags code example Example: remove the html tags in javascript let strippedString = originalString.replace(/(<([^>]+)>)/gi, "");