markupsafe
Safely add untrusted strings to HTML/XML markup.
Safely add untrusted strings to HTML/XML markup.
To install this package, run one of the following:
MarkupSafe implements a text object that escapes characters so it is safe to use in HTML and XML. Characters that have special meanings are replaced so that they display as the actual characters. This mitigates injection attacks, meaning untrusted user input can safely be displayed on a page.
Summary
Safely add untrusted strings to HTML/XML markup.
Last Updated
Sep 28, 2025 at 10:28
License
BSD-3-Clause
Total Downloads
66.1M
Supported Platforms
Unsupported Platforms
GitHub Repository
https://github.com/pallets/markupsafeDocumentation
https://markupsafe.palletsprojects.com/