Grep through text with jQuery and do stuff with the result.