Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
even better... use teh unescape function. example: unescape("%40")
returns "@" pretty cool. furthermore... a better xpath expression would be: "//a[starts-with(@href,'mailto:')]" that eliminates the need for your whole "isMailTo" check. not sure why you would even need the "hasMail" part..... |
|
|
some websites use %40 instead of '@' when they encode mailtos, so i would change the hasMail= line to: hasMail = Math.max(thisLink.href.indexOf('%40'), thisLink.href.indexOf('@')); |