Hi,
 
Any regEx guru's out there who can help out a bit?
 
I need a regEx to strip ALL html Tags, or rather convert them like so:
 
<script> = &lt;script&gt;
Which is not really a problem to do, but I need to allow certain HTML tags like for example:
<b></b>
<h1></h1> | <h1 ></h1 > (with space allowed but no other tag within the tag, i.e. <h1 class="x">)
 
I can't seem to get my head around the reEx for this, I thought that
<[^b\s?>] would stop it from editing the <b> tag....... But not...
 
TIA

Reply via email to