asp.net mvc 4 - Razor, StringBuilder, HTML line break? -
I have a problem that just makes me feel silly .... Looking at the following code in the razor:
@ {... know (bought event! = Null and object purchased! Address! = String. Apt) {addressBlock.AppendFormat ("{0}
; ", Purchased research .Address); } ...} @ addressBlock.ToString () & lt; Br / & gt; is considered as a verbal text (to say that I am finally seeing something like 123 Cool Street page. Change the code (back) to
Avantown ... addressBlock.AppendLine (purchased event address)
You need to use. To quote the docs: "Markup that is not HTML encoded."
Something like this
Raw You are not allowed to do this
Comments
Post a Comment