Manoj Maharana

Manoj Maharana

  • NA
  • 362
  • 123.6k

How to use a WebUtility.HtmlDecode() function in MVC 4 .net

Aug 16 2016 10:19 AM
Here is my Controller
:
private readonly ProductsBL _objProd = new ProductsBL();
readonly ProductModel _model = new ProductModel();
public ActionResult Index()
{
var allproducts = _objProd.GetAllProductDetails();
if (allproducts != null)
{
_model.AllProducts = allproducts;
//All Features
var featlist = new List<string>();
foreach (var products in allproducts)
{
featlist.Add(products.Features);
}
// _model.FeaturesList = featlist;
_model.FeaturesList = featlist;
}
return View(_model);
}
How to use html decode function?? 

Answers (7)