copy to clipboard and htmlified formatting.