<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 18 Feb 2012, at 17:33, Matti Oinas wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Xmerl could be used to parse these templates if only XHTML would be supported. We could also easily validate these templates for correct markup using XML validators.</span></blockquote></div><br><div><br></div><div>Like I wrote, there is an unreleased version of xmerl_sax_parser with a 'html' mode, which handles most of the usual HTML badness (i.e. non-well-formed XML).</div><div><br></div><div>I would like to suggest that the OTP team release it. It doesn't have to be perfect. When parsing html, there is no such thing as perfect.</div><div><br></div><div>There is also the yaws_html module, which I admit that I've never used.</div><div><br></div><div>BR,</div><div>Ulf W</div></body></html>