well, sorry for bothering with the first one message - i forgot to replace html entities with ampersands. Here goes repaired problem :
I stand before this problem :
I have a site where a user can type in large portions of text and I want him/her to be allowed to use the HTML tags (only those I found harmless). I managed to treat "normal" tags like <b> or <i>, but I'm having problems with two peculiar tags : <a> and <font>. All I want is to somehow extract href and/or name parameter from the <a> tag and size,color and face parameters from the <font> tag and replace whole tags with these stripped tags (ie. allow no styles or mouseovers...). Any help is appreciated.