---
title: "Discussion on \"Sanitize on input, escape on output: the WordPress rule behind XSS\" | Hashnode"
description: "Discussion on \"Sanitize on input, escape on output: the WordPress rule behind XSS\". Two WordPress functions people constantly mix up, and the XSS hole that opens when they do."
url: "https://hashnode.com/posts/sanitize-on-input-escape-on-output-the-wordpress-rule-behind-xss/6a3fc8ad5fe18b13bfb93964"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Sanitize on input, escape on output: the WordPress rule behind XSS](https://blog.lunetrax.com/sanitize-on-input-escape-on-output-the-wordpress-rule-behind-xss?utm_source=hashnode&utm_medium=feed)

Two WordPress functions people constantly mix up, and the XSS hole that opens when they do.

Jun 27 · 5 min read · blog.lunetrax.com  
Read the article

-   [#wordpress](https://hashnode.com/tag/wordpress)
-   [#php](https://hashnode.com/tag/php)
-   [#xss](https://hashnode.com/tag/xss)
-   [#web-security](https://hashnode.com/tag/web-security)

## Written by

[Lunetrax](https://hashnode.com/@lunetrax)

@lunetrax · Estonia

  
[View profile](https://hashnode.com/@lunetrax)

Notes on the security of AI-generated WordPress code.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
