1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-MarkupSafe
7 SDESC[py310]= Jinja2.Markup string implementation module (3.10)
8 SDESC[v11]= Jinja2.Markup string implementation module (3.11)
9 HOMEPAGE= https://palletsprojects.com/p/markupsafe/
10 CONTACT= Python_Automaton[python@ironwolf.systems]
13 SITES[main]= PYPI/M/MarkupSafe
14 DISTFILE[1]= MarkupSafe-2.1.3.tar.gz:main
19 OPTIONS_AVAILABLE= PY310 PY311
20 OPTIONS_STANDARD= none
21 VOPTS[py310]= PY310=ON PY311=OFF
22 VOPTS[v11]= PY310=OFF PY311=ON
24 DISTNAME= MarkupSafe-2.1.3
28 [PY310].USES_ON= python:py310,sutools
30 [PY311].USES_ON= python:v11,sutools
32 [FILE:1880:descriptions/desc.single]
36 MarkupSafe implements a text object that escapes characters so it is
37 safe to use in HTML and XML. Characters that have special meanings are
38 replaced so that they display as the actual characters. This mitigates
39 injection attacks, meaning untrusted user input can safely be displayed
45 Install and update using `pip`_:
49 pip install -U MarkupSafe
51 .. _pip: https://pip.pypa.io/en/stable/getting-started/
58 >>> from markupsafe import Markup, escape
60 >>> # escape replaces special characters and wraps in Markup
61 >>> escape("<script>alert(document.cookie);</script>")
62 Markup('<script>alert(document.cookie);</script>')
64 >>> # wrap in Markup to mark text "safe" and prevent escaping
65 >>> Markup("<strong>Hello</strong>")
66 Markup('<strong>hello</strong>')
68 >>> escape(Markup("<strong>Hello</strong>"))
69 Markup('<strong>hello</strong>')
71 >>> # Markup is a str subclass
72 >>> # methods and operators escape their arguments
73 >>> template = Markup("Hello <em>{name}</em>")
74 >>> template.format(name='"World"')
75 Markup('Hello <em>"World"</em>')
80 The Pallets organization develops and supports MarkupSafe and other
81 popular packages. In order to grow the community of contributors and
82 users, and allow the maintainers to devote more time to the projects,
83 `please donate today`_.
85 .. _please donate today: https://palletsprojects.com/donate
90 - Documentation: https://markupsafe.palletsprojects.com/
91 - Changes: https://markupsafe.palletsprojects.com/changes/
92 - PyPI Releases: https://pypi.org/project/MarkupSafe/
93 - Source Code: https://github.com/pallets/markupsafe/
94 - Issue Tracker: https://github.com/pallets/markupsafe/issues/
95 - Chat: https://discord.gg/pallets
99 af598ed32d6ae86f1b747b82783958b1a4ab8f617b06fe68795c7f026abbdcad 19132 MarkupSafe-2.1.3.tar.gz