Ho sbagliato ad inserire la risposta.
Grazie per la risposta, ho fatto le prove ma non sono riuscito a giungere ad una conclusione. Ho provato a inserire direttamente nel database del testo in html e..miracolosamente il testo nel front è formattato.quindi la pagina che mostra gli articoli funziona correttamente e credo che il problema sia nella pagina che inserisce gli articoli nel db.Vi lascio lascio il codice della pagina mostra gli articoli e della pagina di modifica articoli che inserisce il testo nel db.
articledisplay:
[PHP]<?php/** * articledisplay.php * * Display the Article  * * @version    1.2 2011-02-03 * @package    Smithside Auctions * @copyright  Copyright (c) 2011 Smithside Auctions * @license    GNU General Public License * @since      Since Release 1.0 */
$id = (int) $_GET['id'];// Get the existing information for an existing item$item = Article::getArticle($id);if ($item) :?><h1><?php echo htmlspecialchars($item->getTitle()); ?></h1>
<?php echo($item->getText()); ?>
<?php endif;?>[/PHP]
articlemaint:
[PHP]
$accessLevel = Contact::accessLevel();if ($accessLevel != 'Admin') :  echo 'Sorry, no access allowed to this page';else :
$id = (int) $_GET['id'];// Is this an existing item or a new one?if ($id) {  // Get the existing information for an existing item  $item = Article::getArticle($id);} else {  // Set up for a new item  $item = new Article;}?>
<form action="index.php?content=articles" method="post" name="maint" id="maint">
<fieldset class="maintform">    <legend><?php echo ($id) ? 'ID: '. $id : 'Add an Article' ?></legend>    <ul>      <li><label for="title" class="required">Title</label><br />        <input type="text" name="title" id="title" class="required"         value="<?php echo htmlspecialchars($item->getTitle()); ?>" /></li>        <li><label for="text" class="required">Text</label><br />          <textarea rows="30" cols="80" name="text"             id="text" class="required"> <?php echo($item->getText()); ?>          </textarea></li>    </ul>
// create token    $salt = 'SomeSalt';    $token = sha1(mt_rand(1,1000000) . $salt);     $_SESSION['token'] = $token;    ?>    <input type="hidden" name="id" id="id" value="<?php echo $item->getId(); ?>" />    <input type="hidden" name="task" id="task" value="article.maint" />    <input type='hidden' name='token' value='<?php echo $token; ?>'/>    <input type="submit" name="save" value="Save" />    <a class="cancel" href="index.php?content=articles">Cancel</a>  </fieldset></form><?php endif; ?>
[/PHP]
ci potrebbero essere altre pagine php responsabili del mio problema?Grazie ragazzi