i am having a label on web form which contains chemical formula, when i am exporting web form in pdf using iTextSharp it displaying like this
<p>C<sub>32</sub>H<sub>16</sub>CuN<sub>8</sub></p>
i want to display like this in pdf C32H16CuN8
StringWriter sw = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(sw);
lblChemicalFormula.RenderControl(hw);
StringReader sr = new StringReader(sw.ToString());
HTMLWorker htmlparser = new HTMLWorker(document);
htmlparser.Parse(sr);
table.AddCell(PhraseCell(new Phrase("Chemical Formula :", FontFactory.GetFont("Verdana", 8, Font.BOLD, BaseColor.BLACK)), PdfPCell.ALIGN_LEFT));
table.AddCell(PhraseCell(new Phrase(lblChemicalFormula.Text, FontFactory.GetFont("Verdana", 8, Font.NORMAL | Font.UNDERLINE, BaseColor.BLACK)), PdfPCell.ALIGN_LEFT));
document.Add(table);
kindly help me out