I have one issue. I have contact form. When user sends it to me, I am receive not formated text. Without newline and tabulation. $_POST = Security::htmlentities(Security::xss_clean($_POST));
The use of htmlentities suggests you want to send it as html? did you set it as html_body()? And you probably have to run nl2br() as well, to convert newlines to <br>. And HTML doesn't support tabs, so that will never work.