title: Wordpress Customiser & Sanitization
body: <p>Hi folks i’m hoping someone can assist me. I’m learning WordPress Theme Development and i’m just at the point of adding options in the customiser. I’m not sure how to correctly deal with html in a text area. I want to make sure that the texture is sanitised and safe, but also allow it to output HTML. This is the function and code that i’m using.</p>
  
  <pre><code>$wp_customize-&gt;add_setting( 'fs_theme_footer', array(
  'default' =&gt; '',
  'type' =&gt; 'theme_mod',
  'capability' =&gt; 'edit_theme_options',
  'transport' =&gt; '',
  'sanitize_callback' =&gt; 'esc_textarea',
  ) );
  $wp_customize-&gt;add_control( 'fs_theme_footer', array(
  'type' =&gt; 'textarea',
  'section' =&gt; 'fs_theme_footer',
  'label' =&gt; __( 'Textarea Field', 'fluidstudio' ),
  'description' =&gt; '',
  ) );
  </code></pre>
  
  <p>In my theme</p>
  
  <pre><code>&lt;?php echo esc_url( get_theme_mod( 'fs_theme_footer', '' ) ); ?&gt;
  </code></pre>
  
  <p>I have tried different variations of escaping etc but i can’t seem to get the output to correctly display as html, instead the full html code shows on the front end.</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Thanks</p>