# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= python-MarkupSafe VERSION= 3.0.3 KEYWORDS= python VARIANTS= v13 v14 SDESC[v13]= Jinja2.Markup string implementation module (3.13) SDESC[v14]= Jinja2.Markup string implementation module (3.14) HOMEPAGE= https://github.com/pallets/markupsafe/ CONTACT= Python_Automaton[python@ironwolf.systems] DOWNLOAD_GROUPS= main SITES[main]= PYPI/M/MarkupSafe DISTFILE[1]= markupsafe-3.0.3.tar.gz:main DIST_SUBDIR= python-src DF_INDEX= 1 SPKGS[v13]= single SPKGS[v14]= single OPTIONS_AVAILABLE= PY313 PY314 OPTIONS_STANDARD= none VOPTS[v13]= PY313=ON PY314=OFF VOPTS[v14]= PY313=OFF PY314=ON DISTNAME= markupsafe-3.0.3 GENERATED= yes [PY313].USES_ON= python:v13,pep517 [PY314].USES_ON= python:v14,pep517 [FILE:1566:descriptions/desc.single]
[image]
# MarkupSafe 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. ## Examples ```pycon >>> from markupsafe import Markup, escape >>> # escape replaces special characters and wraps in Markup >>> escape("") Markup('<script>alert(document.cookie);</script>') >>> # wrap in Markup to mark text "safe" and prevent escaping >>> Markup("Hello") Markup('hello') >>> escape(Markup("Hello")) Markup('hello') >>> # Markup is a str subclass >>> # methods and operators escape their arguments >>> template = Markup("Hello {name}") >>> template.format(name='"World"') Markup('Hello "World"') ``` ## Donate The Pallets organization develops and supports MarkupSafe and other popular packages. In order to grow the community of contributors and users, and allow the maintainers to devote more time to the projects, [please donate today][]. [please donate today]: https://palletsprojects.com/donate ## Contributing See our [detailed contributing documentation][contrib] for many ways to contribute, including reporting issues, requesting features, asking or answering questions, and making PRs. [contrib]: https://palletsprojects.com/contributing/ [FILE:113:distinfo] 722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698 80313 python-src/markupsafe-3.0.3.tar.gz