I have some HTML being built in my C# controller, and I'm feeding it into the result to be used on an Angular page. It gets to the page, but when it does, the html is unencoded, and shows up as text, not html.
In the C#:
[HttpGet]
public ActionResult Details(Guid id)
{
return HandleRequest(() =>
{
var customer = _csa.GetCustomer(id);
var bc = (isMobile) ? string.Empty : CreateBreadCrumbDisplay(id);
return new
{
customer,
bc
};
});
}
In the html:
<div class="row-fluid" ng-hide="history.bc == null || history.bc.length == 0">
<div class="span12">
{{history.bc}}
</div>
</div>
What appears on the page:
<ul class="breadcrumb"><li><a href="/Employee#!Search">Employee Dashboard</a> <span class='divider'>/</span></li><li class='active'>Customer Information and History</li></ul>
What should appear:
- Employe Dashboard
- Customer Information and History
(but styled by Bootstrap so it's a nice Breadcrumb, and not visually an actual bulleted list)
So, basically, I need to know if there's a way in the html to tell it to display history.bc as actual HTML, and not as text?