<?php function temizle($string) { return strip_tags(addslashes(nl2br($string))); } $post = temizle($_POST['data']); ?>