security - Do you HtmlEncode during input or output? -


when call microsoft.security.application.antixss.htmlencode? do when user submits information or do when you're displaying information?

how basic stuff first name, last name, city, state, zip?

you when displaying information. preserve original entered, convert display on web page. let's displaying in other way, exporting excel. in case, you'd want export preserved original.

encode every single string.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -