title: Sanitize content when batch creating WooCommerce products via REST API
body: <p>I'm creating products in my WooCommerce store via the WooCommerce REST API, using the <code>products/batch</code> endpoint.</p>
  
  <p>I've noticed that within a batch, if WooCommerce has an issue with any of the data sent across in the batch, the array returned is empty. Instead of it returning the array of all items except the one which it has an issue with.</p>
  
  <p>When I used this description in one of the products it did not like it and the WooCommerce REST API response was then just <code>[]</code>.</p>
  
  <p><strong>Content which WooCommerce did not like:</strong></p>
  
  <pre><code>This is an example. ¥ 50% Polyester/25% Cotton/25% Rayon* ¥ Racerback ¥ Form-fitting * Tri-oatmeal is made of 50% polyester/37% cotton/13% rayon
  </code></pre>
  
  <p>You can see symbols like: <code>¥</code> which is likely the cause.</p>
  
  <p>I am dealing with user generated content so I can't always know what weird symbols may appear in the batches of products I try to create.</p>
  
  <p><strong>My Setup:</strong>.<br>
  <strong>Server #1</strong>:
  This server is what handles grabbing all data from the CSV's which users upload, it has had no problems grabbing the data, however maybe it's better to sanitise it immediately before sending to WooCommerce?</p>
  
  <p><strong>Server #2</strong>:
  This server is where WordPress/WooCommerce is installed, WooCommerce recieves the data and does all its usual wp_insert_post etc.</p>