Copy text to clipboard on button click WITHOUT FORMATTING

I am trying to use the button component to copy the text in a text box to the user’s clipboard, but the text in the box is formatted using markdown and I don’t want the markdown characters to be copied as well

Hi Zach! Could you share an example of the kind of text with markdown you would expect in the text box? If this is in a textinput the textinput.value of it shouldn’t include any formatting that wasn’t manually put in by the user

@alex-w Well now what I am doing is I have a text input where someone writes some data, then I use a JavaScript query to take that data and load it into a string that is placed in a Text Box. The text in that text box is wrapped around a

 tag so it looks like code. I want the user to be able to click a button to copy the text from that box so they can run that code, but right now when I use the Copy Text button it also copies the 
 tags too.