add HTMLText type and handle multiple Text nodes