Skill / SKILL.md

Rendering Untrusted Content

wdm0006/python-skills

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 an XSS report.
3 views 121 repository stars 0 commentsUpdated Nov 28, 2026
Overview

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 an XSS report.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/wdm0006/python-skills' skill-source

Use the complete skill-source/skills/common/rendering-untrusted-content directory with your client’s skill installer.

  • skills/common/rendering-untrusted-content

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/common/rendering-untrusted-content

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
17115f79a4d85d2b713659dde9ab01cb5a1ff29d0aec1ccb6bb069fc1b0ef35f
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills