Author Topic: Do not allow HTML in comments  (Read 160 times)

0 Members and 1 Guest are viewing this topic.

Offline asurfaceinbetweenTopic starter

  • Enthusiast
  • Posts: 253
    • View Profile
Do not allow HTML in comments
« on: March 17, 2010, 08:29:08 PM »
Hi,

Is there away to disallow any HTML to be included in comments on articles? How can you run a check to see if </a>, <br /> or anything else exists?

Thanks for any help in advance!

Offline thorpe

  • Administrator
  • 'Mind Boggling!'
  • *
  • Posts: 29,255
    • View Profile
Re: Do not allow HTML in comments
« Reply #1 on: March 17, 2010, 08:51:09 PM »
strip_tags() is probably a good place to start.