7 writes to HtmlEncode
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (6)
DataAnnotationsMetadataProviderTest.cs (1)
64
{ new DisplayFormatAttribute() {
HtmlEncode
= false }, d => d.HtmlEncode, false },
ModelMetadataProviderTest.cs (5)
295
new DisplayFormatAttribute {
HtmlEncode
= false },
300
new DisplayFormatAttribute {
HtmlEncode
= true },
496
var displayFormat = new DisplayFormatAttribute {
HtmlEncode
= true, };
513
var displayFormat = new DisplayFormatAttribute {
HtmlEncode
= false, };
531
var displayFormat = new DisplayFormatAttribute {
HtmlEncode
= false, };
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\DisplayFormatAttribute.cs (1)
24
HtmlEncode
= true; // default to true to match behavior in related components
2 references to HtmlEncode
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
DataAnnotationsMetadataProvider.cs (2)
91
else if (displayFormatAttribute != null && !displayFormatAttribute.
HtmlEncode
)
238
displayMetadata.HtmlEncode = displayFormatAttribute.
HtmlEncode
;