Hello, you are using an old browser that's unsafe and no longer supported. Please consider updating your browser to a newer version, or downloading a modern browser.
Training Camp • Cybersecurity Glossary
Output encoding converts untrusted data into a safe form for its rendering context, serving as a primary defense against cross-site scripting XSS.
Output Encoding Definition: Output encoding converts untrusted data into a safe form for its rendering context, serving as a primary defense against cross-site scripting XSS.
Output encoding is a defensive coding technique that converts untrusted data into a safe representation before it is rendered in an output context, neutralizing characters that would otherwise be interpreted as code. Because the correct encoding depends on the destination, contextual output encoding applies the appropriate scheme for HTML body, HTML attribute, JavaScript, CSS, or URL contexts, and is a primary defense against cross-site scripting XSS.
Turn knowledge into credentials with our instructor-led cybersecurity boot camps.
View All Courses →