title: Send output data as an HTML table
body: <p>I am using Talend to create a report. The requirement is that the report is sent as an email in a tabular format with individual cells colour coded according to the values within. I successfully extracted and transformed the data however I am stuck with outputting the data as an HTML table part.</p>
  
  <p>I could not find a component which outputs data as HTML. Is the only way to use a tJava and hardcode the table template inside whilst looping over the rows to update the values? Or is there a simpler way?</p>
  
  <p>So after extracting the data I would have something like this:</p>
  
  <pre><code>header1,header2,header3
  val1,val2,val3
  val1,val2,val3
  val1,val2,val3
  </code></pre>
  
  <p>And I need to output that in an HTML table format like so:</p>
  
  <pre><code>&lt;table style="width:100%"&gt;
    &lt;tr&gt;
      &lt;th&gt;Header1&lt;/th&gt;
      &lt;th&gt;Header2&lt;/th&gt;
      &lt;th&gt;Header3&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style="background-color: #ccc"&gt;Val1&lt;/td&gt; //IF Val1 &gt; x THEN color = y, etc
      &lt;td&gt;Val2&lt;/td&gt;
      &lt;td&gt;Val3&lt;/td&gt;
    &lt;/tr&gt;
     &lt;tr&gt;
      &lt;td style="background-color: #ccc"&gt;Val1&lt;/td&gt; //IF Val1 &gt; x THEN color = y, etc
      &lt;td&gt;Val2&lt;/td&gt;
      &lt;td&gt;Val3&lt;/td&gt;
    &lt;/tr&gt;
     &lt;tr&gt;
      &lt;td style="background-color: #ccc"&gt;Val1&lt;/td&gt; //IF Val1 &gt; x THEN color = y, etc
      &lt;td&gt;Val2&lt;/td&gt;
      &lt;td&gt;Val3&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>