I am trying to create a Copy button that copies the text from a Javascript output. I have looked at Copy output of a JavaScript variable to the clipboard but it does not work for me since my output contains italics and bold characters. Using that method generates and in the copied text.
I would like the text to be copied to remain italicized/bold. If anyone has any ideas or suggestions please let me know! Thanks for the help!