How to send Ckeditor formatting to BD?

Asked

Viewed 1,569 times

1

My question is this, I set up the CKEditor within a textarea, where everything I type sends to the banco de dados that at the same time feeds another page, working in style sistema de noticias.

However on the page that should open the typed content and with the formatting opens with source code without formatting

EXAMPLE:

T<strong>ES</strong>TE

SYSTEM CODE WHERE THE CKEDITOR IS:

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

DATABASE:

banco de dados

I don’t know if I have to change the Type and Grouping (Collation).

PAGE WHERE THE SYSTEM IS RECEIVED (type of system):

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

Screenshot of Error

inserir a descrição da imagem aqui

Why is this happening?

1 answer

1

  • No, I keep showing tags in html ;s

  • put an image of the result in your question, please?

  • I posted @Harrypotter

  • @Paulopimentel use only htmlspecialchars_decode

  • 1

    gave the second <? php echo(htmlspecialchars_decode($usr['descricaodoevent']));? > Thanks for the help -

Browser other questions tagged

You are not signed in. Login or sign up in order to post.