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
|
Results 1 to 2 of 2
Thread: JavaScript ReplaceThreaded View
|
Click Here to Expand Forum to Full Width |