I've posted a patch into SDM. Please disregard patch #13: it is wrong. #14 is a valid one. Basically, it uses a wrapper from ACS 4.x distribution and corrects any open tags *before* even displaying a comment for confirmation.
This may be extended to also do text->html translation of Plain Text comments to (maybe) make posting of logs better (this seems to be a farily frequent thing as well: the while log being mashed into a single para).