Strip HTML from Text JavaScript

If you’re running in a browser, then the easiest way is just to let the browser do it for you… Note: as folks have noted in the comments, this is best avoided if you don’t control the source of the HTML (for example, don’t run this on anything that could’ve come from user input). For … Read more