How did you determine that entery cleaning? entery come in the POST in the form of a pair of CR+LF characters ('\r\n'). The question is, what do You then do with what You post. If you put in the database, everything as it comes, for correct output to html (after nachitki from the database, derivation) use the function
nl2br