• Hi,

    I would like to encrypt a phone number.
    Use follow code, but it is not encrypted.

    <a href="tel:'. eeb_protect_content('+12 345 678') .'" title="Anrufen"></a>

    In the frontend it looks like

    < href="tel:<span id=" eeb-983133-927783"=""><script>

    and echoeeb_protect_content('+12 345 678'); do nothing

Viewing 1 replies (of 1 total)
  • Plugin Author Ironikus

    (@ironikus)

    Hey @xtiborius – Thanks for reaching out!

    The eeb_protect_content returns an obfuscated HTML snippet containing the hidden phone number. By default, it uses the rot13 (Javascript) obfuscation method. To display it within an actual ahref link as an entity, you need to parse it using a method that doesn’t add any HTML tags. You can use the following:

    eeb_protect_content( ‘+12 345 678’, ‘encode’ )

    Hope that helps!

Viewing 1 replies (of 1 total)
  • The topic ‘eeb_protect_content() not working’ is closed to new replies.