Skip to content

Instantly share code, notes, and snippets.

@codepo8
Created November 12, 2010 17:40
Show Gist options
  • Save codepo8/674405 to your computer and use it in GitHub Desktop.
Save codepo8/674405 to your computer and use it in GitHub Desktop.
function ydntt(o){
var out = document.getElementById('results'),
cpy = document.getElementById('copy'),
html = '',
disp = '',
n,i,j;
for(i=0,j=o.length;i<j;i++){
n = o[i].n.replace('}','</a>');
n = n.replace('{','<a href="'+o[i].u+'">');
html+='<li>'+n+'</a></li>';
}
cpy.innerHTML = '<ul>'+html+'</ul>';
out.innerHTML = html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment