title: convert html table to text without loosing format in c#
body: <p>I have a form application in c#  that reads HTML Invoice from web 
  I want it to be textual output to print with POS printers. </p>
  
  <pre><code>&lt;table border="1"&gt;
    &lt;tr&gt;
       &lt;td&gt;Hello&lt;/td&gt;
       &lt;td&gt;World&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
       &lt;td&gt;foo&lt;/td&gt;
       &lt;td&gt;bar&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I am looking for something that can take the above table and create something like the following.</p>
  
  <pre><code> ------------------------------
   | Hello     | World          |
   ------------------------------
   | foo       | bar            |
   ------------------------------
  </code></pre>