In case it's helpful, here's the code I use in my Twitter election map:
http://maps.google.com/help/maps/elections/#twitter
function atLinks( str ) {
return str.replace(
/(^|\s)@([\w_]+)/g,
'$1@http://twitter.com/$2";>$2'
);
}
It goes to a tiny bi
A simple regex should take care of that for you. Just search for any
occurrence of @ and wrap the result in an
href tag.
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Betty B
Sent: Wednesday, October 22, 2008 1:28 PM
To: jQuery (English)
Subje
2 matches
Mail list logo