How to Insert Line Break using LabelFor in MVC

后端 未结 2 716
死守一世寂寞
死守一世寂寞 2021-01-15 04:15

I have in my Model:

[Display(Name = \"Check to enter  the Quantity of items\")]
public bool IsLimitedQuantity { get; set; }

an

2条回答
  •  爱一瞬间的悲伤
    2021-01-15 05:07

    Using Html decode may help. MVC for security reasons encode all the values.

    How to display HTML stored in a database from an ASP.NET MVC view?

提交回复
热议问题