Hi,
Thanks for your posting and using Aspose.Cells.
Please use the following code.
C#
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
string cellValue1 = ““Barclays Capital Inc.” and “Barclays US Floating Rate Note < 5 Years Index” are trademarks of Barclays Bank PLC and have been licensed for use for certain purposes by BlackRock Institutional Trust Company, N.A. (“BTC”). iShares® is a registered trademark of BTC.”;
string cellValue2 = “one is < two”;
Aspose.Cells.Cell cellA1 = worksheet.Cells[“A1”];
Aspose.Cells.Cell cellA2 = worksheet.Cells[“A2”];
cellA1.HtmlString = cellValue1;//cellvalue1 has been encoded.
cellA2.HtmlString = System.Web.HttpUtility.HtmlEncode(cellValue2);
workbook.Save(“d:\filetemp\dest.xls”);