Closed askonomm closed 1 month ago
To eliminate the problem of HTML self-closing tags not working in Htmt, I think it makes sense to add a interceptor between before the XML gets parsed that will find self-closing tags and closes them automatically.
E.g:
<img src="image.jpeg">
would then become:
<img src="image.jpeg" />
They are called void elements: https://html.spec.whatwg.org/multipage/syntax.html#void-elements
To eliminate the problem of HTML self-closing tags not working in Htmt, I think it makes sense to add a interceptor between before the XML gets parsed that will find self-closing tags and closes them automatically.
E.g:
would then become: