How to retrieve html text from the database?

1

I'm using the editor TinyMCE , the data is saved correctly in the database, however I do not know how to do it and display it on the screen. It's coming back to me like this.

Would anyone know how to solve it? Thanks to the community.

    
asked by anonymous 02.08.2016 / 14:25

2 answers

0

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

    
02.08.2016 / 15:47
0

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

Read from bank: $texto = stripslashes($linha['texto']); echo $texto;

    
02.08.2016 / 15:46