RESOLVED - Change the formatting text

Hi, who helps me?

I have to change a text in a text field and so far everything works with the statement

$w(‘#TextCode’).text = “NewTextNewTextNewTextNewText”;

Now I would like to be able to give this new style, example h1 and bold. I would also like to be able to go to some point in the fraase but I do not know how to do it.

I tried to write this code but just looking at it I do not like it and I do not know how to do it

$w.onReady(function () {
if(wixUsers.currentUser.loggedIn) {

	$w('#TextCode').text = <b><h1>  NewTextNewTextNewTextNewText  </br>  NewTextNewTextNewTextNewText  </h1></b>; 

$w("#imputcode").hide(); 
	$w("#buttonlogcode").hide(); 

}
else {
console.log(‘Utente LogOut’);
}
});

Who helps me please, Thanks

CAn Help me?

Hi,

Change $w(’ #TextCode ‘). text to $w(’ #TextCode '). html
In addition, add apostrophes to contain the html string:

$w(’ #TextCode ').html = ‘

NewTextNewTextNewTextNewText
NewTextNewTextNewTextNewText

’;

Wow,
Thank you so much, I just have to understand with the “” but I can study it, if I find problems I will continue to write in this post.
Thank you so much