title: how to send php email with a html template without html tags?
body: <p>How to only send the content without tags?</p>
  
  <p>I'm using the following code to send an email using a html template. </p>
  
  <p>The email is sent but in the email body I get all the HTML tags also (<code>&lt;div&gt;</code>, <code>&lt;p&gt;</code>.. and so on). </p>
  
  <pre><code>    $message    =   array();
      $message['id'] = $booking_id;
      $message['name'] = $order_info[0]-&gt;name;
      $message['email'] = $order_info[0]-&gt;email;
      $message['address'] = $order_info[0]-&gt;address;
      $message['phone'] = $order_info[0]-&gt;phone;
      $message['guests'] = $order_info[0]-&gt;total_guest;
      $message['summary'] = $order_info[0]-&gt;summary;
  
      $email_to   =   self::has_get_settings('email');
      $subject    =   "New Booking! - Booking ID. " . $booking_id;
      $from       =   $order_info[0]-&gt;email;
      $from_name  =   $order_info[0]-&gt;name;
  
      $template = file_get_contents($controller-&gt;plugin_path . 'includes/libraries/email_template.html');
  
      foreach($message as $key =&gt; $value)
      {
          $template = str_replace('{{ '.$key.' }}', $value, $template);
      }
  
      $headers    =   'From: ' . $from_name . '&lt;' . $from . '&gt;' . "\r\n";
      $headers    .=  'Reply-To: ' . $from_name . '&lt;' . $from . '&gt;';
  
      wp_mail($email_to,
              $subject,
              $template,
              $headers);
  </code></pre>