enter value of the database in a textarea

0

My mistake is:
I have a textarea, which I fill in, I give it to send.

In the database is recorded as follows:


And everything is correct. The problem comes when I make the call to that field within a textarea. Showing that:

For clarity. Clarify that it is a form to register products, so that the form is filled out, and then in the product file the information is displayed, in case of showing that same field, in a table, it is shown without problems. So I guess the problem is in textarea. Can anyone know what that is? Steal to replace the characters with the php, but it did not work. And many more functions that I found, but none of them worked for me.

    
asked by David 13.06.2017 в 14:04
source

1 answer

1

You can use strip_tags() to remove the html tags.

$texto_sin_etiquetas = strip_tags($contenido_textarea);

link

You can also use editors in the textarea like CKEditor that interpret the html tags.

    
answered by 13.06.2017 / 14:17
source