MarkupSafe

Safely add untrusted strings to HTML/XML markup.

About MarkupSafe

Safely add untrusted strings to HTML/XML markup.

Key Features

  • Escapes untrusted strings for safe HTML and XML rendering
  • Markup type tracks already-escaped content
  • Reduces XSS risk in template rendering pipelines
  • Core dependency in Jinja and Flask ecosystems

Installation

uv add markupsafe

Related Tools

Quick Info

Latest Version
3.0.3
First Release
2010
License
Unknown

About pytools.dev

pytools.dev is your go-to directory for the best Python tools, libraries, and frameworks—designed for the modern Python developer.

© 2026 pytools.dev. All rights reserved.
Created with ❤️ by James Fricker