My error is:
I have a textarea, which I fill like this, I give it to send.
In the database it is recorded like this: And everything is correct. The problem comes when I make the call to that field inside a textarea. Which is displayed like this:
For more clarity. Clarify that it is a form to register products, so that the form is filled out, and then the information appears in the product file, in case of showing that same field, in a table, it is shown without problems. So I guess the problem is in the textarea. Can anyone know what is causing this? I tried to replace the characters with the php, but it didn't work. And many more functions that I found, but none of them worked for me.
You can use
strip_tags()
to remove the tagshtml
.http://php.net/manual/es/function.strip-tags.php
You can also use editors like CKEditor in the textarea that interpret the html tags.