Fix text parsing for _text attribute