Hi.
I'd like to display a checkbox with a label that contains HTML.
For example:
Model:
[Display(Name = "I agree to the <a href=\"{0}\">Terms and Conditions</a>")]
public bool IAgreeToTheTermsAndConditions { get; set; }
View:
@Html.Kendo().CheckBoxFor(model => model.IAgreeToTheTermsAndConditions).Label(
string.Format(
Html.DisplayNameFor(model2 => model2.IAgreeToTheTermsAndConditions).ToString(), @Url.Action("TermsAndConditions", null)))
However, the label is rendered with the HTML encoded:
I have agree to the &lt;a href=&quot;/TermsAndConditions&quot;&gt;Terms and Conditions&lt;/a&gt;
How can I pass raw HTML to the Label?
Thank you.