Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 1. What's New in ASP.NET MVC 2? > Automatic HTML-Encoding

1.8. Automatic HTML-Encoding

The last new feature of ASP.NET MVC 2 is something that works only with .NET 4: automatic HTML-encoding. This new ASP.NET 4 feature allows you to specify with very clean syntax that you want to HTML-encode a given string, thus greatly mitigating the chances of Cross Site Scripting (XSS) attacks.

This is achieved through the new code block syntax <%:.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint