Hi everyone,

Is anyone aware of a function or other bit of code that could quickly and easily close open HTML tags.

We're looking at this for a forum-type situation where members are permitted to use HTML in their messages, however sometimes forget to close the tags and muck up the rest of the page layout. e.g. <b>Hi, I forgot to close the bold tag...doh!

Any ideas greatly appreciated, I've had a hunt around but haven't found anything yet - still searching.