Archived topic
Pre Tag Problem in comment box
4 replies · Started by Suraj Katwal on May 7, 2020
When I wrap the code inside pre tag in content part, it is working fine but when I use to wrap it on the comment box, the code inside pre tag is printing.
Any way to solve this?
Hi there,
WordPress limits what HTML elements can be used in the comments form - they provide a filter for it - you can see an example here:
The code is not working and also I think I have to leave it as default to prevent hackers from injecting malicious code.
Yes its a good security precaution as well as stopping users from adding other 'stuff' you may not want visible in comments.
Thank You, David