Forum Academy Marketplace Showcase Pricing Features

How to i use html code content in an imput field

i have an html code that gets a “text” from javascript, something like this:
<span id="text"></span>
but i would like to automatically input the text in an Input Field, how can I make this possible please?

any opinion?

Where is the HTML code on your app once its received?