3 ms·
But both the original question and that article were about XHTML. The non-well-formed mess only matters for HTML, not XHTML. The regex is a valid answer to the
by dgrunwald 5y ago
But both the original question and that article were about XHTML. The non-well-formed mess only matters for HTML, not XHTML.
The regex is a valid answer to the stack overflow question.
- WesolyKubeczek 5y agoSorry, but no. The original question only mentions the author wants to ignore XHTML-style self-closing tags which is in no way implying the input to be well-formed XHTML.