how to display only tag in variable string,
const textHtml = "<h1>What events are you looking for today?</h1> <p>Find more events you want!</p>"
output : What events are you looking for today? Find more events you want!
expected : What events are you looking for today? just show the tag h1, the tag p, i won't the tag p is showing
and the output only display tag <h1> and the tag <p> is delete/not showing, cause value string of textHtml is a value from api response. And i don't how to display only the tag <h1>.
can anyone help me, please? And sorry for my bad english, thankyou