$('.pagination').replaceWith('
<\/a> 1<\/a> 2<\/a> <\/span><\/div>');