title: ConvertTo-Html from hash table of html content to html document
body: <p>I am trying to display some html encoded information on a document that is generated by a scheduled execution of a powershell script.</p>
  
  <p>The following MVP illustrates my issue:</p>
  
  <pre><code>@{ a="&lt;div style=""color:red;""&gt;Hello&lt;/div&gt;"; b="Hi"}.GetEnumerator() | Select Key, Value | ConvertTo-Html | Out-File -Encoding utf8 -FilePath C:\Scripts\Test.html
  </code></pre>
  
  <p>Which outputs:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;title&gt;HTML TABLE&lt;/title&gt;
  &lt;/head&gt;&lt;body&gt;
  &lt;table&gt;
  &lt;colgroup&gt;&lt;col/&gt;&lt;col/&gt;&lt;/colgroup&gt;
  &lt;tr&gt;&lt;th&gt;Key&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;a&lt;/td&gt;&lt;td&gt;&amp;lt;div style=&amp;quot;color:red;&amp;quot;&amp;gt;Hello&amp;lt;/div&amp;gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;b&lt;/td&gt;&lt;td&gt;Hi&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>Which, when opened, looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/Hmzfj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Hmzfj.png" alt="Ouptut of command when opened"></a></p>
  
  <p>But I want my <code>Hello</code> to be red, and not to see the escaped html <code>div</code> code.</p>
  
  <p>Is there any way to tell <code>ConvertTo-Html</code> not to escape my inputs?</p>
  
  <p>Note: This MVP only illustrates the issue I'm facing. I actually have a very complex report that I would like to decorate for easier viewing (color coding, symbol, et al).</p>
  
  <p>This is the report I am trying to configure:
  <a href="https://i.stack.imgur.com/0a1na.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0a1na.png" alt="Badly formatted report output"></a></p>