As the title says, will this work in preventing a spam bot picking up the contact details:
$(document).ready(function(e) {
$.each($('.cd'), function(i,v){
$(this).html($(this).attr('html'));
});
});
<div style="display:table-cell" class="cd" html="0123456789"></div>
If not, are there any other suggestions?
My favorite for doing this, is that: http://jsfiddle.net/ejwZJ/