title: How to add a rich Textbox (HTML) to a table cell?
body: <p>I have a rich text box named:”DocumentContent” which I’m going to add its content to pdf using the below code:</p>
  
  <pre><code>iTextSharp.text.Font font = FontFactory.GetFont(@"C:\Windows\Fonts\arial.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED, 12f, Font.NORMAL, BaseColor.BLACK);
              DocumentContent = System.Web.HttpUtility.HtmlDecode(DocumentContent);
              Chunk chunkContent = new Chunk(DocumentContent);
              chunkContent.Font = font;            
  
              Phrase PhraseContent = new Phrase(chunkContent);
              PhraseContent.Font = font;
  
  
              PdfPTable table = new PdfPTable(2);
              table.WidthPercentage = 100;
              PdfPCell cell;
  
              cell = new PdfPCell(new Phrase(PhraseContent));
              cell.Border = Rectangle.NO_BORDER;
              table.AddCell(cell);
  </code></pre>
  
  <p>The problem is when I open PDF file the content appears as HTML not a text as below:</p>
  
  <pre><code>&lt;p&gt;Overview&amp;#160; line1 &lt;/p&gt;&lt;p&gt;Overview&amp;#160; line2
  &lt;/p&gt;&lt;p&gt;Overview&amp;#160; line3 &lt;/p&gt;&lt;p&gt;Overview&amp;#160;
  line4&lt;/p&gt;&lt;p&gt;Overview&amp;#160; line4&lt;/p&gt;&lt;p&gt;Overview&amp;#160;
  line5&amp;#160;&lt;/p&gt;
  </code></pre>
  
  <p>But it should look like below</p>
  
  <pre><code>Overview line1
  Overview line2
  Overview line3
  Overview line4
  Overview line4
  Overview line5
  </code></pre>
  
  <p>What I'm going to do is to keep all the styling which user apply to the rich text and just change font family to Arial.</p>
  
  <p>I can change Font Family but I need to Decode this content from HTML to Text.</p>
  
  <p>Could you please advise?
  Thanks</p>