Difference between revisions of "HTML Entity Encoding"

Jump to: navigation, search
m (Reverted edits by Micheal w s mcnamee (talk) to last revision by KirstenS)
(One intermediate revision by one other user not shown)
(No difference)

Latest revision as of 07:09, 21 November 2012

This is a control. To view all control, please see the Control Category page.

HTML entity encoding is the process of replacing ASCII characters with their 'HTML Entity' equivalents. For example, you would replace the "<" character with "&lt;"

Using HTML entity encoding is useful because HTML entities are 'inert' in most interpreters, especially browsers. This means that even if an attacker tricks your application into sending malicious code to another user's browser, the attack won't execute.

This article is a stub. You can help OWASP by expanding it or discussing it on its Talk page.