in reply to Hiding mail addresses in mailto: with JavaScript
Well, no. It isn't better because now I can't use that from my JavaScript-less browser anymore. Also, you might want to deuglify your regex (and improve its power) thusly. You're getting into very, very deep water by trying to parse the other parts of the html document but if you restrict yourself to just the mailto: URIs then you're probably ok.
s( (['"]) \s* (mailto: (?s:.)+) \1 )( your_function( $2 ) )ge
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Hiding mail addresses in mailto: with JavaScript
by projekt21 (Friar) on Oct 24, 2003 at 19:12 UTC |