On some of our forums we allow our moderators to use HTML in addition to UBBcode in their posts. However, for some reason, whenever they go back in to edit the post later, the board forgets the post uses HTML and all of the tags show up unrendered in the post. It makes no difference whether "using HTML" or "using HTML and UBBcode" is selected, or whether the board's edit lockout time has expired. I've checked the database and the correct values for B_Convert are being inserted for the posts.

- Moderators have full privileges in these forums except they cannot edit or ban users.

- This does NOT affect admins, for whom the HTML rendering is preserved when they edit a post.

- Don't know if it affects regular users (I assume it does), but they don't have posting privileges on these forums anyway.

- We upgraded to 6.5.2 (+ 6.5.3/6.5.4 security fixes) 2-3 weeks ago. However, I don't know how old this problem is because this is the first time it's been tried (to my knowledge) in the 1.5 years we've used Threads.

- This is not an issue with individual moderator accounts. I created a new user, promoted it to moderator, and was able to repeat the error without any effort.

I've pored through editpost.php and modifypost.php and can't find anything wrong with the code. I just don't understand why it would work Is there any way to get around this, where the solution doesn't involve "don't use HTML"?