[Resolved] Comments section outputting in plain html
I’m hoping you can help me with a problem I seem to be having. The comments section on our website seems to be outputting any comment as plain html. This causes issues as there are no line breaks or anything. Not only that but it’s also potentially a problem because of the freedom it gives anyone posting a comment.
I’ve tried using the functions below to try and solve the issue but to no avail. If anyone could help fix the issue, that would be fantastic.
The following code was placed in the functions.php file, but didn’t help
add_filter(‘comment_text’, ‘wp_filter_nohtml_kses’); add_filter(‘comment_text_rss’, ‘wp_filter_nohtml_kses’); add_filter(‘comment_excerpt’, ‘wp_filter_nohtml_kses’);
An example of the comments section can be found at: http://www.lthan3.com/?p=315
All I’m looking for is a simple fix to make comments be output in plain text, so if I type
In a comment, it comes out as such, rather than Line 1 Line 2 Line 3.
Thanks for any help provided <3
- The topic ‘[Resolved] Comments section outputting in plain html’ is closed to new replies.