How to rescue html text from database?

Asked

Viewed 141 times

1

I’m using the editor TinyMCE, the data is saved correctly in the database, but I do not know how to rescue them and show them on the screen. It is returning me like this.

inserir a descrição da imagem aqui

Would anyone know how to solve it? I thank the community.

2 answers

0

Write to the bank: $texto = addslashes($_POST['texto');

Bank read: $texto = stripslashes($linha['texto']); echo $texto;

0


I’m using Aravel, my solution was to put the {!! !!} in the view.

  • Is that the answer to the question or a comment? If it is a comment, it should not be done in this field, but in an issue in the question.

  • That’s the answer to my question, so I guess that’s the answer

  • Oh yes, it wasn’t very clear, now with the editing, it got better :)

  • Felipe the fact that Utulizar Laravel should have been put in the question as well. I’m glad that solved

Browser other questions tagged

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