‘ //if url and name both return zero matches, use innerHTML as is. var url = obj.html().match(/href=\”([^”]*)\”/i); if (url == undefined) { url = obj.html().match(/href=\'([^’]*)\’/i) } if (url == undefined) { url = ”; name = obj.html(); } else { url = url[1]; name = obj.html().match(/>([^

Ilya_Perevalov
Rate author