jQuery(document).ready(function($) { $('.mylink').replaceWith(function(){ return '' + $(this).html() + ''; }); }); .