I have the following code:
text = text.replace(/<[^>]*>/gi,'');

Which I believe should strip any HTML formatting from a string. Can any one adapt this to strip everything but line breaks (<br>).

Help appreciated.

DJ