El texto de Jqurey contiene selector

$('div:contains("test")').css('background-color', 'red');
Blushing Bug