All if i send data <test>
its getting converted as html tags <test></test>
please help!!
public static MvcHtmlString AnchorRowSelection(this HtmlHelper helper, string displayText, string title, string CssClass, string onclick, bool isModernPortal)
{
string className = ".body-row";
// Building anchor tag html
var Anchor = new TagBuilder("a");
// if(!string.IsNullOrWhiteSpace(displayText))
Anchor.InnerHtml = ControlUtilities.EncodeEmptyText(displayText);
if(!string.IsNullOrWhiteSpace(title))
Anchor.Attributes.Add("title", title);
if(!string.IsNullOrWhiteSpace(CssClass))
Anchor.Attributes.Add("class", CssClass);
if(!string.IsNullOrWhiteSpace(onclick))
{
string onclickString = string.Format("Javascript:highliteRowSelection(this, '{0}');{1}", className, onclick);
Anchor.Attributes.Add("onclick", onclickString);
}
return MvcHtmlString.Create(Anchor.ToString(TagRenderMode.Normal));
}
i changed inner html to set inner text but i am facing some other issues