I'm not sure if this is a MU or WP problem, but I don't have a running copy of WP to test on.
When I enter an entity into my post, specifically the left bracket [ which is & # 9 1 ;
(excuse the spaces — bbPress is eating the entity). When I save the post, it's fine — the entity gets stored in the DB exactly as I typed it.
However, when I edit the post, the entity isn't entitised, so it gets directly inserted into the textarea in the post edit screen:
<textarea>& # 9 1;</textarea>
(again, excuse the spaces)
Thus, next time I save the post, it will insert a [ into the DB, not the & # 9 1 ;
.
What should be inserted into the textarea is this:
<textarea>& a m p ; # 9 1;</textarea>
Basically, an extra wp_specialchars()
needs to be run on the content before echoing it to the textarea.