Account for <br> in text highlighting