B
Barry L. Camp
Hi all... hope someone can help out.
Not a unique situation, but my search for a solution has not yielded
what I need yet.
I'm trying to come up with a regular expression for a
RegularExpressionValidator that will allow certain HTML tags:
<a>, <b>, <blockquote>, <br>, <i>, <img>, <li>, <ol>, <p>, <quote>,
<ul>
but block others. So basically I'd like to detect "<" then look for
certain sequences (the tags above). But I also of course have to
account for any number of possible attributes. And then some of the
tags above have closing tags, others do not.
I don't fully understand regular expressions, yet would like to learn;
however, I also want to find a way to do this soon.
I don't want to reinvent this particular "wheel" if it has already been
done before, if you know what I mean.
Any help from anyone out there would be greatly appreciate. Thanks
Much!
Barry L. Camp
Not a unique situation, but my search for a solution has not yielded
what I need yet.
I'm trying to come up with a regular expression for a
RegularExpressionValidator that will allow certain HTML tags:
<a>, <b>, <blockquote>, <br>, <i>, <img>, <li>, <ol>, <p>, <quote>,
<ul>
but block others. So basically I'd like to detect "<" then look for
certain sequences (the tags above). But I also of course have to
account for any number of possible attributes. And then some of the
tags above have closing tags, others do not.
I don't fully understand regular expressions, yet would like to learn;
however, I also want to find a way to do this soon.
I don't want to reinvent this particular "wheel" if it has already been
done before, if you know what I mean.
Any help from anyone out there would be greatly appreciate. Thanks
Much!
Barry L. Camp