Leo1
Newbie
- Aug 19, 2020
- 10
- 4
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:

And in the source code it comes out like this:
This is the text editor that I am building:

Thank you in advance for your help.
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:

And in the source code it comes out like this:
Code:
<p><img src="https://imagenes247.com/wp-content/uploads/2018/12/cumple_ayeryhoy2.jpg" /></p>
This is the text editor that I am building:

Thank you in advance for your help.
Last edited: