title: Wordpress XMLRPC API post (html) error parse error not well formed
body: <p>I am using Wordpress's XMLRPC API and the IXR_Library php class for WP API. wp.newPost is working normally if I use plain text or just simple text in body/content of the post but when I am posting a autocreated full html/shortcode content, it always gives me this error</p>
  
  <pre><code>Array ( [faultCode] =&gt; -32700 [faultString] =&gt; parse error. not well formed ) 
  </code></pre>
  
  <p>The content I am trying to post is a post content I normally use within WP with shortcodes but I want to post it via php using API since I am trying to automate my blogging.<br>
  You can check the body/content I am trying to post below<br>
  <a href="http://pastebin.com/U94XVZGT" rel="nofollow">http://pastebin.com/U94XVZGT</a><br>
  Thats the content thats shown in XML debug mode (probably seems already html encoded)<br>
  Below is the full XML call and response returned via debugging, have removed user/pass from it<br>
  <a href="http://pastebin.com/26Nyx97K" rel="nofollow">http://pastebin.com/26Nyx97K</a>  </p>
  
  <p>I would really appreciate any possible help, I have already tried php's htmlentities and htmlspecialchar functions to encode my body and even tried str_replace to replace[ ] brackets in thought that they might be causing it  </p>
  
  <p>Again, its certainly due to the content code as I tried just a Hello World plain content and it worked  ------------------------------------------------------------<br>
  A Update, earlier I was getting the html content from a textarea using $_POST, just now I tried to use same content in same variable but used ' ' single quotes instead around the content body and now posting works but I get a error  </p>
  
  <p><code>Warning: strpos(): Empty delimiter in wp-includes/class-wp-xmlrpc-server.php on line 4338</code>  </p>
  
  <p>So if I use $body=$_POST['body']; it doesnt works and gives main error but directly using $body=' htmlcontent inside '; works but gives above strpos error</p>