在上面的 MVC 3.0 查看一个字符串变量包括 html 但不起作用
string address = "-";
if (Model.Landmark != null)
{
address = Model.FlatBuildingName + " " + Model.RoadStreet + " " + Model.Landmark +"</br> "+ Model.Pincode + " " + Model.Villagecity ;
}
包括 html 标签,但不显示
输出
FlatBuildingName RoadStreet Landmark</br>PincodeVillagecity