setText updated to support tspans