1

In wordpress comments system, it work HTML. I want to protect inserting HTML in wordpress comment system.

1 Answer 1

2

Add this to your functions.php. I'm not sure if this does any pre-processing though.

add_filter('comment_text', 'wp_filter_nohtml_kses');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.