Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using HTML inside resource files

I am developing a standard small ASP.NET MVC website which will be made multilingual using ASP.NET resource files.

My question is about the resource files. See if you have a block of text which should be shown in paragraphs, is it appropriate to add <p> tags inside your resource file text?

If not, what would be the best way to deal with it?

like image 824
Peter Avatar asked Sep 29 '09 07:09

Peter


1 Answers

You can use the @Html.Raw method inside your view, e.g. @Html.Raw(STRING FROM RESX FILE HERE)

like image 161
Evrm Avatar answered Oct 04 '22 16:10

Evrm