$(document).ready(function(){
	$('.link').each(function(){
		var anchor = $(this).text();
		var href = $(this).attr('rel');
		$(this).replaceWith('<a href="'+href+'">'+anchor+'</a>');
	});
});
