Updated to handle html in the labels.