Hi Dominic,

a regular expression is not secure enough for stripping tags, bad formatted code with missing tags close characters, alternate character for tags etc... can skip that function, imagine something like:

<a href="XXX" javascript="malliciuos code here" text here ...
<a href="blabla"> 

So using the jquery text function we rely on the browser  (because it internally extracts the text from the nodes and also parses the invalid tags, etc...)

I've found also this in stackoverflow that explain the same case: http://stackoverflow.com/questions/1499889/remove-html-tags-in-javascript-with-regex

Regards