How to pass html tag from parent to child component in LWC ?
Parentcmp.js
msg =''
init()
{
this.msg =`<h1>Watch out!</h1><p>Unauthorized hockeying can result in penalties of up to minutes.</p>`
}
<c-child message={msg}></c-child>
ChildCmp.js
@api Message;
ChildHtml
<div>{message}</div>
Result :<h1>Watch out!</h1><p>Unauthorized hockeying can result in penalties of up to minutes.</p>
Expected Result :**Watch out! Unauthorized hockeying can result in penalties of up to minutes**
Not the tag .
How to dynamic binding Html template string value in LWC ?