praticamente ho trovato sul manuale questi script:
Codice PHP:
//sezione 1
        
$orig addslashes($_POST["txtOggetto"]);

    
$a htmlentities($orig);
    
    
$b html_entity_decode($a);
    
    echo 
"<p style='margin-left:100px'>";
    echo 
"1: ".$a ."
\n"
// I'll &quot;walk&quot; the &lt;b&gt;dog&lt;/b&gt; now
    
    
echo "2: ".$b."
\n"
// I'll "walk" the [b]dog[/b] now
    
//sezione 2    
    // Per utilizzatori di versioni di PHP antecedenti alla 4.3.0:
    
function unhtmlentities($string)
    {
       
$trans_tbl get_html_translation_table(HTML_ENTITIES);
       
$trans_tbl array_flip($trans_tbl);
       return 
strtr($string$trans_tbl);
    }
    
    
$c unhtmlentities($a);
    
    echo 
"3: ".$c."
\n"
// I'll "walk" the [b]dog[/b] now 
praticamente le sezioni 1 e 2 sono utilizzabili entrambe per il mio scopo?
grazie ancora..