Convert selected range to HTML and copy to the clipboard