html tag in string
var element = "<div id='whatever'>Hello</div>"
html tag in string
var element = "<div id='whatever'>Hello</div>"
show html string in p tag
const str = `<div>
<p>1st p tag</p>
<p>2nd p tag</p>
</div>`
let doc = new DOMParser().parseFromString(str, 'text/html')
console.log(
doc.querySelector('p').textContent
)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us