Re: [SMARTY] mailto hex and ns4

From: Date: Fri, 13 Feb 2004 16:57:51 +0000
Subject: Re: [SMARTY] mailto hex and ns4
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10949@lists.php.net to get a copy of this message
I don't think the mailto: link works when you use hex code for the mail address. Only the part outside the html tags is hex coded for viewing. Try encode="javascript", that one probably work the best anyways. On Fri, 2004-02-13 at 10:53, Tobias Daur wrote: > Hi, > > I used the custom function "mailto" with hex-encoding, for > spam-protection. But: NS4.x doesn't like it. > > As mentioned in the manual, smarty gives the link back like this: > > <a > href="mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d" > >&#x6d;&#x65;&#x40;&#x64;& > #x6f;&#x6d;&#x61;&#x69;&#x6e;&#x2e;&#x63;&#x6f;&#x6d;</a> > > the second part, hex-encoded, is fine in NS4. NS4 shows the normal > characters, not the code. > But the first part after "mailto:", which looks like > an URL-encoding, is > shown as it is in the sourcecode. > > Ist there any reason, the first part being not also a hex code like the > second part? This would work fine in NS4. > > > Tobias

« previous php.smarty.general (#10949) next »