I'm trying to create a wordpress post with html code in content for images but I have a problem. For example my content looks like:
<p><img src=";amp;v=4" style="width: 52px;"><br></p>
But in Wordpress editor this same code is with slashes so it doesn't display.
<p><img src=\";v=4\" style=\"width: 52px;\"><br></p>
Api call:
$api_response = wp_remote_post( '', array(
'headers' => array(
'Authorization' => 'Basic ' . base64_encode( 'admin:xxxx' )
),
'body' => array(
'title' => $title,
'content' => $text,
'status' => 'publish',
'format' => 'standard'
)
) );
Is there any fix for this problem?