How to render without encoding in ASP.NET MVC Razor View ?

Are you looking to render a string in ASP.NET Razor View without encoding ? If yes , you could use the Html.Raw helper methods to achieve this.

How to render without encoding in ASP.NET MVC Razor View ?

Below is a sample code snippet to demonstrate the usage of Html.Raw in ASP.NET MVC.

@Html.Raw("Welcome to AbundantCode.com")
0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.
Pin It

One thought on “How to render without encoding in ASP.NET MVC Razor View ?

  1. Pingback: Interesting .NET Links - February 19 , 2013 | TechBlog

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>