Per recommendation of a developer of a project I'm working on, I'm using the following:
http://developer.yahoo.com/yui/editor/
"TinyMCE" is also another one I've worked with.
Aside from the above, I've been using open-source libs for database abstraction to "hopefully" keep ugly shit from torquing the database.