add dom to text