When you save it to the database or before you display the data, are you encoding the characters? For example are you using htmlspecialchar(). I'm not talking about in the editor. I am referring to when you save the data.
What you are describing indicates that the html code is being encoded for display so that < is coming out as < which the browser displays as < instead of interprets as code.