I know that there are a million posts on how to copy a javascript variable into a clipboard. I'm partial to this approach:
window.prompt("Copy to clipboard: Ctrl+C, Enter", output);
However, I'm wondering how I can get a variable that contains bold. My desired result is that I can paste the variable (into word) and have a portion of it bolded. I'm trying to set up up the variable like this:
var output = "something <b>bold section</b> something else";
I don't want to export that literally with the HTML, I want to export it as though I selected and then copied the following:
something bold section something else
How can I best achieve this result?