How to Strip HTML tags in JavaScript

Standard

I needed to be able to do this toady and the following approach saved me loads of time: