Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.