• Resolved doffine

    (@doffine)


    If we navigate to the settings > basic and scroll all the way down, we have the Consent Statement field under PRIVACY. If we put HTML like a-tags in this statement field and click save, the html is being changed and it breaks the link on the front end.

    (We tried to put the different html formattings here but it doesn’t work). We can replicate this though so you might be able to do the same.

    We know we can select a privacy statement page below that field, but we need to be able to link it directly in the consent statement sentence. This used to work fine before, but now it seems like the formatting is being changed. If we save the page again, it breaks the link on the front end.

    Would you be able to assist with this and maybe fix this behavior?

    • This topic was modified 3 years, 10 months ago by doffine.
    • This topic was modified 3 years, 10 months ago by doffine.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support jaysupport

    (@jaysupport)

    Hi doffine,

    There is currently no option to include HTML in the consent text.

    We use WordPress’s default wp_kses_post function (https://developer.wordpress.org/reference/functions/wp_kses_post/) to escape that field. So, you could filter that function to add your own allowed HTML. However, we cannot assist with this and would not recommend doing it unless you really know what you are doing and are comfortable adjusting the escaping/security of your site.

    Thread Starter doffine

    (@doffine)

    Thank you very much. It would be very nice if you think about adding the HTML option to this in future releases.

    Marking this as resolved now.

    -doffine

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘HTML (a-tag) in Consent Statement field broken’ is closed to new replies.