ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Encoding email addresses in links

March 27, 2009 11:10am

Subscribe [3]
  • #1 / Mar 27, 2009 11:10am

    hairydalek

    18 posts

    HI,
    I like the way EE automagically encodes email links. However, I am having problems. I want an email address, which has been applied to an image, to be encoded. I can’t get this to work. The images are in a weblog:

    <a href="mailto:[email protected]">myimage.jpg</a>

    The mailto: links isn’t seen, and the email address is left naked and bare to the universe.

    I did try using HTML entities (&#xxx;) to encode certain characters, but sadly the & symbols are output as & so that kills that idea.

    The {encode} tag works for links applied to runs of text, but not to images. How do I get email addresses used this way encoded?

    Thanks.

  • #2 / May 05, 2009 12:18pm

    hairydalek

    18 posts

    BUMP. Any takes for this one, or is this something which can not be done?

  • #3 / May 05, 2009 12:22pm

    hairydalek

    18 posts

    HI,
    I have posted this here as it’s on my gripe list of things which need fixing before the site goes live. No luck posting it on the main board, so I am hoping that someone in support can help.

    I like the way EE automagically encodes email links. However, I am having problems. I want an email address, which has been applied to an image, to be encoded. I can’t get this to work. The images are in a weblog:

    <a href="mailto:[email protected]">myimage.jpg</a>

    The mailto: link isn’t seen, and the email address is left naked and bare to the universe.

    I did try using HTML entities (&#xxx;) to encode certain characters, but sadly the & symbols are output as & amp; (less the space - I added that manually to ensure it gets seen in this post) so that kills that idea.

    The {encode} tag works for links applied to runs of text, but not to images. How do I get email addresses used this way encoded?

    I am assuming that what I want is possible, unless I get a definite statement that it can’t.

    Thanks.

  • #4 / May 05, 2009 12:56pm

    Sue Crocker

    26054 posts

    hairydalek, this functionality is not supported. Which is why I’m going to merge your thread from the Support forum back here again.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases