$(function(){ // This will remove any strong elements that contain "remove this line of text" $('contains("")').remove(); });