title: Insert post with HTML tags - Wordpress API & PHP
body: <p>I've a problem with <strong>WP API</strong> to insert a post with HTML Tags.</p>
  
  <p>I'm using the method: <strong>wp_insert_post()</strong> and the content is like this:</p>
  
  <pre><code>$content = "Hi, this is an example &lt;br/&gt; of the content.";
  </code></pre>
  
  <p>The result I want when I publish the post is:</p>
  
  <pre><code>Hi, this is an example
  of the content
  </code></pre>
  
  <p>But the result I have when I publish the post is:</p>
  
  <pre><code>Hi, this is an example &lt;br/&gt; of the content.
  </code></pre>
  
  <p>When I go to the WP Editor, The Text editor looks like:</p>
  
  <pre><code>Hi, this is an example &amp;lt;br/&amp;gt; of the content.
  </code></pre>
  
  <p>And The Visual Editor:</p>
  
  <pre><code>Hi, this is an example &lt;br/&gt; of the content.
  </code></pre>
  
  <p>And obviosly <strong>I want this result</strong> in the Text editor:</p>
  
  <pre><code>Hi, this is an example &lt;br/&gt; of the content.
  </code></pre>
  
  <p>And in the Visual Editor:</p>
  
  <pre><code>Hi, this is an example
  of the content.
  </code></pre>
  
  <p>This happens with all html tags. </p>
  
  <p>Thank you very much.</p>
  
  <p>**** UPDATE WITH THE CODE ****</p>
  
  <pre><code>$content="Hi, this is an example &lt;br/&gt; of the content."; 
  $my_post = array( 
  'post_title' =&gt; $title, 
  'post_status' =&gt; 'publish', 
  'post_content' =&gt; $content,
  'post_author' =&gt; 1, 
  'post_category' =&gt; array(8,39)); 
  // Insert the post into the database 
  $post_id = wp_insert_post( $my_post );
  </code></pre>