Extracting a substring from an HTML text field brings back HTML code on top of the actual text in the field