Page 1 of 1

Escaping email address in content

Posted: Sat Mar 25, 2006 7:29 pm
by katon
I need to list email addresses in page content.  Does anybody know a nice and easy method how to escape it?  I know how to do this in a smarty template, but I'd like to know how this can be done in web page content.

A Solution

Posted: Sun Mar 26, 2006 1:07 am
by katon
Ok, I have made a tag that does the job.  Just download it, rename *.txt to *.zip, and unpack into the plugins directory.  Then select Extensions->Tags, find 'spamprotect' in the list and read help.

The tag returns a valid XHTML email link with obscurred text to prevent spambots from identifying the link as an email address.

How about including it into the standard CMSMadeSimple installation?  Or have I chosen the hard way not knowing an easier solution?

[attachment deleted by admin]

Re: Escaping email address in content

Posted: Mon Mar 27, 2006 10:23 am
by katon
A fixed version of the plugin attached.

[attachment deleted by admin]

Re: Escaping email address in content

Posted: Mon Mar 27, 2006 10:31 am
by petert
what is wrong with the e-mail tag?
http://dev.cmsmadesimple.org/projects/email

Re: Escaping email address in content

Posted: Mon Mar 27, 2006 4:43 pm
by katon
The only thing that was wrong with it was that if failed to find it when I needed it :-)  Other than that, it does exactly what I needed and what I tried to do.  Why not include it in the standard cmsmadesimple installation?  I think it's one of the most important tags to be used by cmsmadesimple users.

Re: Escaping email address in content

Posted: Mon Mar 27, 2006 6:19 pm
by petert
katon wrote: Why not include it in the standard cmsmadesimple installation?  I think it's one of the most important tags to be used by cmsmadesimple users.
I aggree, I will make it a feature request in the develpment section.

Re: Escaping email address in content

Posted: Sat Jul 22, 2006 3:19 pm
by Elijah Lofgren
petert wrote:
katon wrote: Why not include it in the standard cmsmadesimple installation?  I think it's one of the most important tags to be used by cmsmadesimple users.
I aggree, I will make it a feature request in the develpment section.
I've marked that feature request as complete since you can just use the built-in mailto Smarty tag to encode email addressess:
http://dev.cmsmadesimple.org/tracker/in ... 6&atid=104
Marking as complete since there is a built-in Smarty mailto
tag to encode and email address:
I.E

Code: Select all

{mailto address='me@domain.com' encode='hex'}
or:

Code: Select all

{mailto address='me@domain.com' encode='javascript'}
more info here:
http://smarty.php.net/manual/en/languag ... mailto.php

Re: Escaping email address in content

Posted: Sun Jul 23, 2006 2:13 am
by Dr.CSS
Was he asking to be able to just list them or have them clickable to make your email client start a new email, if you know what I mean.

EDIT: OK

Re: Escaping email address in content

Posted: Sun Jul 23, 2006 2:24 am
by Elijah Lofgren
mark wrote: Was he asking to be able to just list them or have them clickable to make your email client start a new email, if you know what I mean.
As per this, I think he meant have a clickable link:
katon wrote: ...
The tag returns a valid XHTML email link with obscurred text to prevent spambots from identifying the link as an email address.
...