stripTags javascript. function htmlTagremove (text) { var cont = document.createElement You can remove simple HTML tags from a string using a regular expression. To strip out all the HTML tags from a string there are lots of procedures in JavaScript. javascript strip_tags equivalent. how to remove a tag in javascript.