wdm0006/python-skills/rendering-untrusted-content
Renders stored, authored, or imported content into HTML without shipping XSS — auditing every autoescape bypass (|safe, Markup, innerHTML), sanitizing Markdown output with an allowlist, escaping on both the server and the DOM, and writing sanitization tests that assert on the right copy of the string. Use when adding a Markdown or rich-text filter, rendering user/admin-authored content, reviewing a template that marks HTML trusted, building a client that injects values into innerHTML, or fixing
Agent skill · version 0.0.0-main.1795736937.g95f001d · from wdm0006/python-skills
Install
npx yarkr-cli add skill:wdm0006/python-skills/rendering-untrusted-contentWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:wdm0006/python-skills/rendering-untrusted-content
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:wdm0006/python-skills/rendering-untrusted-contentOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:wdm0006/python-skills/rendering-untrusted-contentWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.