[WordPress] Problem with wp_editor() function

Leo1

Newbie
Joined
Aug 19, 2020
Messages
8
Reaction score
3
Hello community.

I am using the wp_editor() function to generate a simple text editor in a textarea element, the problem is that when I insert an image in the editor and publish it, in the post it comes out as if the image were a text string in quotes, comes out like this:
“<img src="https://imagenes247.com/wp-content/uploads/2018/12/cumple_ayeryhoy2.jpg" />” instead of the image.

How could I solve this so that the image comes out.

See attached image of the problem:

fre1.PNG

And in the source code it comes out like this:

Code:
<p>&lt;img src="https://imagenes247.com/wp-content/uploads/2018/12/cumple_ayeryhoy2.jpg" /&gt;</p>
This is the text editor that I am building:

misi.PNG

Thank you in advance for your help.
 
Last edited:
Top