Re: Email Obfuscation Function

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 70255
interpreted = N
texte = Hey Clint, Looks good, thanks for sharing it. The one thing that I notice is that (I think) the numeric character references, etc, should end with a semi-colon. (A minute later) -- Checking a couple of browsers, it looks like they display OK without the semi-colon, but it doesn't verify as correct HTML, so to be safe I would put them in. -- Dana On May 15, 2008, at 2:46 PM, Clint Davis wrote: > Here's what I came up with in case it helps anyone else: > > //=====================// > MyPage.tpl Code > //=====================// > [include file=func.inc] > [getEmail emailAddress=[EMAIL]&linkText=[EMAIL]] > > > //=====================// > Func.inc Code > //=====================// > [function name=getEmail] > [text]myEmail=[getOrdString string=[emailAddress]][/text] > [text]myLabel=[getOrdString string=[linkText]][/text] > [text]myMailto=[getOrdString string=mailto:][/text] > [return][myLabel][/return] > [/function] > [function name=getOrdString] > [text]output=[convertwords table=ascii&case=T&word=ss][url][string] > [/url][/convertwords][/text] > [return][output][/return] > [/function] > [table name=ascii&fields=from,to] > %20 > %21! > %22" > %23# > %24$ > %25% > %26& > %27' > %28( > %29) > %2A* > %2B+ > %2C, > -- > .. > 00 > 11 > 22 > 33 > 44 > 55 > 66 > 77 > 88 > 99 > %3A: > %3B; > %3C< > %3D= > %3E> > %3F? > %40@ > AA > BB > CC > DD > EE > FF > GG > HH > II > JJ > KK > LL > MM > NN > OO > PP > QQ > RR > SS > TT > UU > VV > WW > XX > YY > ZZ > %5B[ > %5C\ > %5D] > %5E^ > __ > %60` > aa > bb > cc > dd > ee > ff > gg > hh > ii > jj > kk > ll > mm > nn > oo > pp > qq > rr > ss > tt > uu > vv > ww > xx > yy > zz > %7B{ > %7C| > %7D} > %7E~[/table] > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Email Obfuscation Function ( Colin Sidwell 2008)
  2. Re: Email Obfuscation Function ( Dana Keil 2008)
  3. Re: Email Obfuscation Function ( Clint Davis 2008)
  4. Re: Email Obfuscation Function ( Donovan Brooke 2008)
  5. Re: Email Obfuscation Function ( Clint Davis 2008)
  6. Re: Email Obfuscation Function ( "Michael A. DeLorenzo" 2008)
  7. Re: Email Obfuscation Function ( Dana Keil 2008)
  8. Email Obfuscation Function ( Clint Davis 2008)
Hey Clint, Looks good, thanks for sharing it. The one thing that I notice is that (I think) the numeric character references, etc, should end with a semi-colon. (A minute later) -- Checking a couple of browsers, it looks like they display OK without the semi-colon, but it doesn't verify as correct HTML, so to be safe I would put them in. -- Dana On May 15, 2008, at 2:46 PM, Clint Davis wrote: > Here's what I came up with in case it helps anyone else: > > //=====================// > MyPage.tpl Code > //=====================// > [include file=func.inc] > [getEmail emailAddress=[EMAIL]&linkText=[EMAIL]] > > > //=====================// > Func.inc Code > //=====================// > [function name=getEmail] > [text]myEmail=[getOrdString string=[emailAddress]][/text] > [text]myLabel=[getOrdString string=[linkText]][/text] > [text]myMailto=[getOrdString string=mailto:][/text] > [return][myLabel][/return] > [/function] > [function name=getOrdString] > [text]output=[convertwords table=ascii&case=T&word=ss][url][string] > [/url][/convertwords][/text] > [return][output][/return] > [/function] > [table name=ascii&fields=from,to] > %20 > %21! > %22" > %23# > %24$ > %25% > %26& > %27' > %28( > %29) > %2A* > %2B+ > %2C, > -- > .. > 00 > 11 > 22 > 33 > 44 > 55 > 66 > 77 > 88 > 99 > %3A: > %3B; > %3C< > %3D= > %3E> > %3F? > %40@ > AA > BB > CC > DD > EE > FF > GG > HH > II > JJ > KK > LL > MM > NN > OO > PP > QQ > RR > SS > TT > UU > VV > WW > XX > YY > ZZ > %5B[ > %5C\ > %5D] > %5E^ > __ > %60` > aa > bb > cc > dd > ee > ff > gg > hh > ii > jj > kk > ll > mm > nn > oo > pp > qq > rr > ss > tt > uu > vv > ww > xx > yy > zz > %7B{ > %7C| > %7D} > %7E~[/table] > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Dana Keil

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

TCP Connect (2000) quick GREP question (2001) PageMaker/Quark to db (1999) $purchase WITHOUT creditcar (1997) WebCat2b15MacPlugin - showing [math] (1997) controlling user input (1998) # of real domains on 1 web server (1997) Re2: frames & carts (1997) WebCat2: Items xx to xx shown, etc. (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) EIMS Problems (1997) 4.51 Triggers (2003) Getting total number of items ordered (1997) NT vs Mac (1997) Sitebuilder / StoreBuilder - *related.db* (2008) RE: File Uploads: WebCat/SiteEdit (1998) RE: Redirect (1998) WebCat2: multiple currency support (1997) totals (1997) syntax question, not in online refernce (1997)