If you are using Zend_Db and parameterised queries (i.e.: $adapter->insert($tableName, array('param' => 'value'))
) then it will automagically escape everything for you.
If however you want to further validate the user input, have a look at Zend_Validate http://framework.zend.com/manual/en/zend.validate.html and Zend_Filter http://framework.zend.com/manual/en/zend.filter.html
Also, if by "tags" you mean HTML tags, I wouldn't do anything to those on input but do make sure you properly escape / strip them on output (have a look at http://uk2.php.net/htmlspecialchars)
If you want to display an error message if the input contains HTML tags, and assuming $comment
is the comment body, you could try:
if(strip_tags($comment) !== $comment) {
// It seems it contained some html tags
}