<?php

        
function ClearText($Text)
        {
        
            if(
get_magic_quotes_gpc())
            {
        
                
$Text stripslashes($Text);
            
            }
        
            
$Text trim($Text);
            
$Text htmlspecialchars($Text);
            
$Text htmlentities($Text);
            
$Text strip_tags($Text);
        
            return 
$Text;
        
        }

?>