I have a form that allows any registered user to submit a post (it's a custom post type - forum related), and I'm using wp_insert_post()
to insert it into the db.
From what I've seen in this function a sanitize_post() function is run automatically, but I think this only handles db escaping and such.
So how do I sanitize the input data the same way as the wp-admin editor does? I mean apply the kses filter and all the other stuff...