|
-
Sep 27th, 2005, 04:00 AM
#1
Thread Starter
Frenzied Member
Regular Expression
I'm currently using the following regular expression to strip any HTML formatting from a string.
text = text.replace(/<[^>]*>/gi,'');
Now I want to adapt this to stop it from removing <br> and <p>, </p> tags.
Any one got any ideas? - I'm rubbish at RegExp.
DJ
If I have been helpful please rate my post. If I haven't tell me!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|