Hi all;
I want to strip out all the html from a textarea, but I want to leave the <p> and <br> tags. Thereafter I would like to strip any styles that may be defined within the leftover <p> and <br> tags.
This is the javascript regex I have so far to match all tags:
/<\/?[a-z][a-z0-9]*[^<>]*>/
I found it in a regex library. Does anyone know how I can modify this to not match <br> or <p> tags, taking into consideration that they may have styling defined?
Thank you for any and all help!
Sean.![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)
I want to strip out all the html from a textarea, but I want to leave the <p> and <br> tags. Thereafter I would like to strip any styles that may be defined within the leftover <p> and <br> tags.
This is the javascript regex I have so far to match all tags:
/<\/?[a-z][a-z0-9]*[^<>]*>/
I found it in a regex library. Does anyone know how I can modify this to not match <br> or <p> tags, taking into consideration that they may have styling defined?
Thank you for any and all help!
Sean.
![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)