How to set up, $item(text1).html on click text same world by element value ?

Setting the html property sets the text and styling of the text element. Any text that the element already contained is replaced.
Getting the html property returns the element’s text, including HTML tags.

https://www.wix.com/corvid/reference/$w.Text.html#html

$w("#yourElement").html = "<b>Bold Text</b>";

To set or get the plain, unstyled contents of a text element, use the text property instead.
Just assign it to your input field’s value

for example:


$item(text1).text =  $w('#firstName').value 

thank you for your response

I have already implemented this, but actually I want to make text.html a tag, and when the text is clicked only that text is in the search field

Do you have another way for this?