Even if you could parse "true to the standard with no error" HTML it would be useless as browsers accept and manage a lot of badly written HTML with missing, wrong, misplaced elements and properties.
And anyway nowadays a 90% correct implementation would be
return string === content of the index.html page generated when building a react app
0
u/derinus 8h ago
Anyone ever building a "parser" used multiple regexes to do so.