title: WordPress wp_insert_post with HTML in post_content is adding \r\n
body: <p>I'm creating a script outside of WordPress to insert new posts and WordPress is sanitizing my post in a weird way.</p>
  
  <p>I will also be modifying the posts outside of WordPress.</p>
  
  <p><strong>I'm am using TinyMCE for the <code>post_content</code> textarea.</strong></p>
  
  <p>I'm using all WordPress functions by including:</p>
  
  <p><code>include('../wp-config.php');</code></p>
  
  <p>Here is my code that inserts my posts, but with \r\n for each new line:</p>
  
  <pre><code>$listing_phase = strtoupper($_POST['listing_phase']);
  $listing_title = strtoupper($_POST['listing_title']);
  $listing_description = $_POST['listing_description'];
  $new_listing = array(
      'post_title'    =&gt; $listing_title,
      'post_name'     =&gt; str_replace('-', ' ', $listing_title),
      'post_content'  =&gt; $listing_description,
      'tax_input'     =&gt; array('property-status' =&gt; $listing_phase),
      'post_status'   =&gt; 'publish',
      'post_type'     =&gt; 'property',
      'post_author'   =&gt; 1
  );
  $listing_id = wp_insert_post($new_listing);
  </code></pre>
  
  <p>Here is the HTML that TinyMCE submitted:</p>
  
  <pre><code>&lt;p&gt;Studio&lt;/p&gt;
  &lt;ul&gt;
  &lt;li&gt;Free Electric&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>This is what is in the database:</p>
  
  <pre><code>&lt;p&gt;Studio&lt;/p&gt;\r\n&lt;ul&gt;\r\n&lt;li&gt;Free Electric&lt;/li&gt;\r\n&lt;/ul&gt;
  </code></pre>
  
  <p>When trying to modify a post I'm calling <code>the_content();</code> from <code>get_posts();</code> and \r\n are showing up.</p>
  
  <p>How do I submit basic HTML content to WordPress's wp_insert_post function and get the content to view or modify later?</p>
  
  <p><img src="https://i.stack.imgur.com/ZNLdP.png" alt="WordPress Display"></p>
  
  <p>Thanks!</p>