How To Disable HTML In WordPress Comments

Spammers are one of the biggest issues in WordPress. Most of the spammers attacks WordPress blogs more than any other blogging platform. They comment on our posts with the link to their website and comments with HTML mark-up. We recently shared a tutorial about removing website field from WordPress comments at this link.

Just like website field, we will disable uses of HTML in WordPress comments. In this way, the spammers will not be able to post comments with hyperlinks and annoying bold text. Seriously, I really hate that bold text in my comments!

In order to disable HTML markup in your WordPress’ comments, add following snippet to your current theme’s functions.php file:

Leave a Comment