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
Post a Comment