[Resolved] Pre Tag Problem in comment box

Home Forums Support [Resolved] Pre Tag Problem in comment box

Home Forums Support Pre Tag Problem in comment box

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1273252
    Suraj Katwal

    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?

    #1273640
    David
    Staff
    Customer Support

    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:

    https://wordpress.stackexchange.com/a/340528

    #1273650
    Suraj Katwal

    The code is not working and also I think I have to leave it as default to prevent hackers from injecting malicious code.

    #1273980
    David
    Staff
    Customer Support

    Yes its a good security precaution as well as stopping users from adding other ‘stuff’ you may not want visible in comments.

    #1274693
    Suraj Katwal

    Thank You, David

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.