<?php
function p($par, $st = false)
{
    if ($st) {
        return htmlspecialchars(addslashes(trim($_POST[$par])));
    } else {
        return addslashes(trim($_POST[$par]));
    }
}
?>
Örnek Kullanım.
<?php 
if($_POST){
$baslik = p("baslik",true);
$icerik = p("icerik");
}
?>