Skip to content

Instantly share code, notes, and snippets.

View LordSputnik's full-sized avatar

Ben Ockmore LordSputnik

View GitHub Profile
function getWikiText(o, callback) {
if (!o['relations']) {
callback('');
return;
}
var wikiLink;
for (var i = 0; i < o['relations'].length; ++i) {
if (o['relations'][i]['type'] == 'wikipedia') {
wikiLink = parseURL(o['relations'][i]['url']);