php - How do I HTML Encode all the output in a web application? -


i want prevent xss attacks in web application. found html encoding output can prevent xss attacks. problem how html encode every single output in application? there way automate this?

i appreciate answers jsp, asp.net , php.

you don't want encode html, want html-encode user input you're outputting.

for php: htmlentities , htmlspecialchars


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 -