• Resolved gskyknight

    (@gskyknight)


    Hello WPeka,

    I would like to let you know that after the last update (version 2.3.8) a previously resolved issue has returned.

    Plugin version 2.2.4 resolved the issue about HTML link tags getting removed from the Cookie Notice in the frontend. However, it seems that issue has returned.

    Here is an example “GDPR Message”:

    <a >Example.com</a>, uses cookies in order to blah blah blah...

    Unfortunately, the plugin strips off the link tag:

    <a ></a>

    In continuation to my previously proposed fix, a good possible resolution eligible for the current version could be the following:

    File: gdpr-cookie-consent/public/templates/skins/default.php
    Line 31:

    Current code:

    <div class="group-description" tabindex="0"><p class="gdpr"><?php echo esc_html( $the_options['gdpr_str'], '<a><br><em><strong><span><p><i><img><b><div><label>' ); ?>

    Suggested modification:

    <div class="group-description" tabindex="0"><p class="gdpr"><?php echo strip_tags( $the_options['gdpr_str'], '<a><br><em><strong><span><p><i><img><b><div><label>' ); ?>

    This again uses the function the PHP function strip_tags() instead of esc_html() that escapes all HTML tags in the frontend.

    I would be grateful if you could again implement the proposed resolution or take any other action that fixes the issue in the next update to allow basic HTML markup the in consent message.

    Best regards,
    George

    The page I need help with: [log in to see the link]

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

    (@omendrarajput)

    Hi @gskyknight,

    Thank you for your suggestion.

    We have added this request to our product roadmap. And this feature will be added in our future releases.

    Regards,
    Team WPeka.

    Thread Starter gskyknight

    (@gskyknight)

    Hi @omendrarajput,

    With the release of version 2.3.9, I’m happy to report that the issue has been successfully resolved. Your commitment to delivering a quick response and an efficient solution is much appreciated.

    Wishing you continued success and looking forward to more positive experiences with your product.

    Best regards,
    George

    • This reply was modified 12 months ago by gskyknight.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Follow-up: Auto removal of links in Cookie Notice Content’ is closed to new replies.