If you are going to work with custom form which inputs texts to WordPress, this is a must read to prevent headache in near future: WordPress auto-use magic quote for the sake of consistency. Read these link:
- [Stackoverflow] With “magic quotes” disabled, why does PHP/Wordpress continue to auto-escape my POST data?
- [WordPress Core Trac] The Road to Magic Quotes Sanity
- [WordPress Codex] Function Reference/stripslashes deep
- [WordPress Codex] Data Validation Approach