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
Avantown ...
page. Change the code (back) to 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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -