79629413

Date: 2025-05-19 20:19:57
Score: 0.5
Natty:
Report link

The best HTML parser is browser itself!

let str = `wel<span class="t">come</span> to all 
<div>
Some Div content with <a> A TAG</a> and <div>inner DIV</div>
</div>
`

let el=document.createElement('DIV')
el.innerHTML=str;
console.log(el.innerText)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sergey Soltanov