.NET 4, VS 2010, C#, MVC 3.
In my resource file, I have:
First line.<p />Second line.
I'm reading it from the view via Razor:
@Translations.Example
But my p's stay p's - in other words, they don't get rendered as HTML.
Why?
Do
@Html.Raw(Translations.Example)
try to use Raw
extension method
@Html.Raw(Translations.Example)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With