Escaping email address in content
-
katon
Escaping email address in content
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.
-
katon
A Solution
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]
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]
-
katon
Re: Escaping email address in content
A fixed version of the plugin attached.
[attachment deleted by admin]
[attachment deleted by admin]
Re: Escaping email address in content
what is wrong with the e-mail tag?
http://dev.cmsmadesimple.org/projects/email
http://dev.cmsmadesimple.org/projects/email
Mambo sucks, that's why I am here.
Now they call it Joomla, but it still sucks!
CMSMS rules!
Now they call it Joomla, but it still sucks!
CMSMS rules!
-
katon
Re: Escaping email address in content
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
I aggree, I will make it a feature request in the develpment section.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.
Mambo sucks, that's why I am here.
Now they call it Joomla, but it still sucks!
CMSMS rules!
Now they call it Joomla, but it still sucks!
CMSMS rules!
- Elijah Lofgren
- Power Poster

- Posts: 811
- Joined: Mon Apr 24, 2006 1:01 am
Re: Escaping email address in content
I've marked that feature request as complete since you can just use the built-in mailto Smarty tag to encode email addressess:petert wrote:I aggree, I will make it a feature request in the develpment section.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.
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.Eor:Code: Select all
{mailto address='me@domain.com' encode='hex'}more info here:Code: Select all
{mailto address='me@domain.com' encode='javascript'}
http://smarty.php.net/manual/en/languag ... mailto.php
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. 
Re: Escaping email address in content
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
EDIT: OK
Last edited by Anonymous on Sun Jul 23, 2006 4:21 am, edited 1 time in total.
- Elijah Lofgren
- Power Poster

- Posts: 811
- Joined: Mon Apr 24, 2006 1:01 am
Re: Escaping email address in content
As per this, I think he meant have a clickable link: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.
katon wrote: ...
The tag returns a valid XHTML email link with obscurred text to prevent spambots from identifying the link as an email address.
...
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. 

