• Resolved Jane

    (@jstepak)


    I’d like to use the ‘enkode’ short code to hide a phone number on our website. If I use:

    [enkode text=”shown to non-JS browsers”]888-222-2222[/enkode]

    can you tell me what I should put in place of “shown to non-JS browsers”? If I replace “shown to non-JS browsers” with something other than the phone number does this mean that the phone number won’t be displayed on the page if the browser does not support JavaScript?

    I’d appreciate any guidance you have on this. Thanks!

    https://www.ads-software.com/plugins/php-enkoder/

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

    (@michael_greenberg)

    The text you write in the “text” attribute will be shown, but not the contents. So:

    [enkode text="for private eyes only"]super duper secret[/enkode]

    Will map to

    <script>... a bunch of self-evaluating JS that shows "super duper secret"</script>

    on browsers with JS; on browsers without JS, they’ll just get:

    <span>for private eyes only</span>

    I might be wrong about the presence of the span, but it’s more or less that.

Viewing 1 replies (of 1 total)
  • The topic ‘Question about format of enkode short code’ is closed to new replies.