I have seen the following tag as an answer to a question:
<%: Model.FirstName %>
what does ” <%: ” do?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It html encodes the output of Firstname, this prevents encoding attacks like cross-side scripting (XSS).
Html encoded:
Normal output:
More info can by found at this blog post:
New <%: %> Syntax for HTML Encoding Output in ASP.NET 4 (and ASP.NET MVC 2)