title: Custom WYSIWYG box not saving HTML formatting
body: <p>I have created a custom WYSIWYG metabox which I have set up using the wp_editor function and passed the relevant settings through. My problem is that the when I input text into the box, try to format and save the text with headings, uls etc it does not save the formatting  - See screenshot and code below:</p>
  
  <p><img src="https://i.stack.imgur.com/M9TO1.jpg" alt="enter image description here"></p>
  
  <pre><code>&lt;?php 
  
      function theme_meta_box_services_callback($post) {
      $service_details = get_post_meta($post-&gt;ID, 'service_details', true);
  
      $settings_editor = array(
          'quicktags' =&gt; true,
          'tinymce' =&gt; true,
          'textarea_rows' =&gt; 8,
          'media_buttons' =&gt; true
      );
  
      wp_editor(esc_attr($service_details), 'service_details', $settings_editor);
  
      }
  ?&gt;
  </code></pre>
  
  <p>I have tried to use the "esc_html" function instead of the "esc_attr" function but this still didn't work.</p>
  
  <p>Any help would be greatly appreciated.
   - Jim.</p>