$(document).ready(function(){ $("a:contains(INSTANT)").each(function(k,v){ var d = $(v).html(); d = d.replace("INSTANT", "
INSTANT
"); $(v).html(d); }); });