Regex in Ruby - Strip HTML out of comments - help

If you drop the requirement to KNOW if someone entered HTML in the comment, you could simply strip the html tags using TextHelper::strip_tags.

Hammed

Hammed Malik wrote:

If you drop the requirement to KNOW if someone entered HTML in the comment, you could simply strip the html tags using TextHelper::strip_tags.

Hammed

I want to deny any comments that have HTML tags in them, and I know this can be done using Regex, but I'm not very familiar with how to do this.

Why don't you just escape the comment before displaying it?

   Justin