and in autoLinkEmails i would like to have some extra stuff as well:
/**
* fix to allow obfuscation of email (js, img?)
* @param string $text
* @param htmlOptions (additionally - not yet supported by core):
* - obfuscate: true/false (defaults to false)
* 2010-11-20 ms
*/
function autoLinkEmails($text, $options = array()) {
...
}
any idea on that?
a simple JS obfuscater would probably be enough for now
maybe later I could build in an img obfuscater (using ImageMagick etc)
On 9 Nov., 01:53, cricket <[email protected]> wrote:
> On Mon, Nov 8, 2010 at 6:22 AM, euromark <[email protected]> wrote:
> > thing is i tried all that before
> > all kind of errors due to the create_function syntax (probably
> > variables outside of the scope)
>
> > today - after quite some time of trial and error - I discovered that i
> > need to use var_export as well in order to work
> >http://pastebin.com/cfrrewGX
>
> What I meant was to first call TextHelper::autoLinkUrls() (removing
> your own options), then run your own preg_replace_callback() on the
> result. I don't think it's necessarily a a great solution, but I think
> it'd work.
>
> > i was wondering weather this should be supported by the cake
> >autoLinkUrls() method
> > and if i should open a ticket to support those changes...
>
> You've got my vote.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en