How to send formatting from CKEditor to DB?

1

My question is as follows, I configured CKEditor inside a textarea , where everything I type sends to banco de dados which at the same time feeds another page, working in sistema de noticias style.

But in the page that should open the typed content and with the formatting opens with unformatted source code

EXAMPLE:

T<strong>ES</strong>TE

SYSTEM CODE WHERE CKEDITOR IS:

<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<textarea class="ckeditor" name="descricaodoevento" id="descricaodoevento"><? echo("$prof[descricaodoevento]");?></textarea>

DATA BANK:

database http://oi59.tinypic.com/2prfzid.jpg

I do not know if I have to change the Type and Collation.

PAGE WHERE IT RECEIVES THE SYSTEM (type of news system):

<div class="bar1"> <h2>Descrição</h2></div>
<? echo("$usr[descricaodoevento]");?>   

Error Image

Why is this happening?

    
asked by anonymous 19.06.2014 / 01:50

1 answer

1

Use htmlspecialchars_decode :

<?php echo(htmlspecialchars_decode($usr['descricaodoevento']));?>

References:

19.06.2014 / 01:54