in reply to Re: How to parse not closed HTML tags that don't have any attributes? (updated)
in thread How to parse not closed HTML tags that don't have any attributes?

The HTML looks fine to me. Many HTML elements have optional end tags. <p> is one of them. The following is valid HTML:

<p>I like: <ul> <li>Chocolate <li>Pizza <li>Mexican food </ul> <p>Yet I don't like Mexican chocolate pizza!

Replies are listed 'Best First'.
Re^3: How to parse not closed HTML tags that don't have any attributes?
by haukex (Archbishop) on Mar 08, 2021 at 15:30 UTC
    Many HTML elements have optional end tags.

    Yes, I know - the reason I called it "broken", which admittedly was probably too strong a word (parent updated), is because of the inconsistent closing tags, suggesting at the very least that not very much attention to detail was paid in the production of the HTML.