Copy text as formatted HTML