Customise Webform Email Submission Data In the webform-mail.tpl.php template, it outputs the main form data using: 

[submission:values]


I am using the html format (using mime-mail) and this outputs to the email html in the form: 

&lt;div&gt;&lt;label&gt;Name&lt;/label&gt;Name value&lt;/div&gt;


Is there a way I can customise the output so that it doesn't use the label field and uses a &lt;p&gt; tag instead? 

The problem with the &lt;label&gt; tag is that I cannot style it in Microsoft Outlook as it ignores all styling for this tag, and the email is quite difficult to read/understand.
I managed to find the answer from an identical question at How to use [submission:values] in Email template in Webforms.

Using the webform-submissions.tpl.php template I changed the output structure from:

&lt;div&gt;&lt;label&gt;Name&lt;/label&gt;Name value&lt;/div&gt;


to:

&lt;div&gt;&lt;p class="label"&gt;Name&lt;/p&gt;&lt;p class="value"&gt;Name Value&lt;/p&gt;&lt;/div&gt;


Using the code below:

&lt;?php 
if ($format == 'html') {
    $output = drupal_render_children($renderable);
    $output = preg_replace('/&lt;label.*?&gt;/', '&lt;p class="label"&gt;', $output);
    $output = str_replace(' &lt;/label&gt;', ':&lt;/p&gt;&lt;p class="value"&gt;', $output);
    $output = str_replace('&lt;/div&gt;', '&lt;/p&gt;&lt;/div&gt;', $output);
    print $output;
}
?&gt;


Now the styling in my Outlook emails look much better :)