public IHtmlString Link(string text, string url, string identifier, object liHtmlAttrs = null, object aHtmlAttrs = null)
{
var a = new GenericInnerHtmlContainer("a", text, false) { Attrs = new HtmlAttributes(aHtmlAttrs) };
a.Attrs["href"] = url;
var li = new GenericInnerHtmlContainer("li", a.ToHtmlString(), false) { Attrs = new HtmlAttributes(liHtmlAttrs) };
if (!string.IsNullOrEmpty(_activeIdentifier))
{
var id = string.IsNullOrEmpty(identifier) ? text : identifier;
if (_activeIdentifier == id) li.Attrs["class"] += "active";
}
return li;
}