I have 2 blogs using WordPress 2.8 and have been tearing my hair out trying to figure out why HTML in comments is rendered correctly in one (http://blog.webartz.net) but not the other (http://www.davewilsonphotography.com). I've finally delved into the PHP for the IQ2 theme and see the following which I suspect is the cause of my problem:
add_filter('pre_comment_content','wp_specialchars');
As far as I can tell, this escapes all the HTML in comments. I would love the comments to be parsed using the same process as is used by my other blog (i.e. allowing all HTML that I have explicitly allowed via the list in the wp-includes/kses.php file). My assumption is that removing the add_filter line will cause this to happen but, being a PHP and WordPress newbie, I'm worried that I will be doing some damage elsewhere by doing this.
Can anyone tell me why IQ2 adds this comment filtering and whether removing it is dangerous?
Thanks,
Dave Wilson
closed
resolved