Copy text as plain text or html