comparison env/lib/python3.9/site-packages/MarkupSafe-1.1.1.dist-info/METADATA @ 0:4f3585e2f14b draft default tip

"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author shellac
date Mon, 22 Mar 2021 18:12:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4f3585e2f14b
1 Metadata-Version: 2.1
2 Name: MarkupSafe
3 Version: 1.1.1
4 Summary: Safely add untrusted strings to HTML/XML markup.
5 Home-page: https://palletsprojects.com/p/markupsafe/
6 Author: Armin Ronacher
7 Author-email: armin.ronacher@active-4.com
8 Maintainer: The Pallets Team
9 Maintainer-email: contact@palletsprojects.com
10 License: BSD-3-Clause
11 Project-URL: Documentation, https://markupsafe.palletsprojects.com/
12 Project-URL: Code, https://github.com/pallets/markupsafe
13 Project-URL: Issue tracker, https://github.com/pallets/markupsafe/issues
14 Platform: UNKNOWN
15 Classifier: Development Status :: 5 - Production/Stable
16 Classifier: Environment :: Web Environment
17 Classifier: Intended Audience :: Developers
18 Classifier: License :: OSI Approved :: BSD License
19 Classifier: Operating System :: OS Independent
20 Classifier: Programming Language :: Python
21 Classifier: Programming Language :: Python :: 2
22 Classifier: Programming Language :: Python :: 3
23 Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
24 Classifier: Topic :: Software Development :: Libraries :: Python Modules
25 Classifier: Topic :: Text Processing :: Markup :: HTML
26 Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
27 Description-Content-Type: text/x-rst
28
29 MarkupSafe
30 ==========
31
32 MarkupSafe implements a text object that escapes characters so it is
33 safe to use in HTML and XML. Characters that have special meanings are
34 replaced so that they display as the actual characters. This mitigates
35 injection attacks, meaning untrusted user input can safely be displayed
36 on a page.
37
38
39 Installing
40 ----------
41
42 Install and update using `pip`_:
43
44 .. code-block:: text
45
46 pip install -U MarkupSafe
47
48 .. _pip: https://pip.pypa.io/en/stable/quickstart/
49
50
51 Examples
52 --------
53
54 .. code-block:: pycon
55
56 >>> from markupsafe import Markup, escape
57 >>> # escape replaces special characters and wraps in Markup
58 >>> escape('<script>alert(document.cookie);</script>')
59 Markup(u'&lt;script&gt;alert(document.cookie);&lt;/script&gt;')
60 >>> # wrap in Markup to mark text "safe" and prevent escaping
61 >>> Markup('<strong>Hello</strong>')
62 Markup('<strong>hello</strong>')
63 >>> escape(Markup('<strong>Hello</strong>'))
64 Markup('<strong>hello</strong>')
65 >>> # Markup is a text subclass (str on Python 3, unicode on Python 2)
66 >>> # methods and operators escape their arguments
67 >>> template = Markup("Hello <em>%s</em>")
68 >>> template % '"World"'
69 Markup('Hello <em>&#34;World&#34;</em>')
70
71
72 Donate
73 ------
74
75 The Pallets organization develops and supports MarkupSafe and other
76 libraries that use it. In order to grow the community of contributors
77 and users, and allow the maintainers to devote more time to the
78 projects, `please donate today`_.
79
80 .. _please donate today: https://palletsprojects.com/donate
81
82
83 Links
84 -----
85
86 * Website: https://palletsprojects.com/p/markupsafe/
87 * Documentation: https://markupsafe.palletsprojects.com/
88 * Releases: https://pypi.org/project/MarkupSafe/
89 * Code: https://github.com/pallets/markupsafe
90 * Issue tracker: https://github.com/pallets/markupsafe/issues
91 * Test status: https://dev.azure.com/pallets/markupsafe/_build
92 * Official chat: https://discord.gg/t6rrQZH
93
94