Not only will this get you directly to each instance within the array that contains the text you're searching for, but it will also perform significantly better than the code in the question.
for (NSString *testWord in legislationArray) {
if ([testWord rangeOfString:@"BOLDME"].location != NSNotFound) {
// testWord contains "BOLDME"
cell.dynamicTextView.text =
[cell.dynamicTextView.text stringByAppendingString:testWord];
}
}
As written, this will append the found string to whatever text is already in the text view. It may be that you only want one word in the text view. If this is the case, then you should break;
as soon as you find the first one.