dom to string