Mercurial > repos > guerler > springsuite
comparison planemo/lib/python3.7/site-packages/MarkupSafe-1.1.1.dist-info/METADATA @ 0:d30785e31577 draft
"planemo upload commit 6eee67778febed82ddd413c3ca40b3183a3898f1"
author | guerler |
---|---|
date | Fri, 31 Jul 2020 00:18:57 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d30785e31577 |
---|---|
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 :: 2.7 | |
23 Classifier: Programming Language :: Python :: 3 | |
24 Classifier: Programming Language :: Python :: 3.4 | |
25 Classifier: Programming Language :: Python :: 3.5 | |
26 Classifier: Programming Language :: Python :: 3.6 | |
27 Classifier: Programming Language :: Python :: 3.7 | |
28 Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content | |
29 Classifier: Topic :: Software Development :: Libraries :: Python Modules | |
30 Classifier: Topic :: Text Processing :: Markup :: HTML | |
31 Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.* | |
32 | |
33 MarkupSafe | |
34 ========== | |
35 | |
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 | |
40 on a page. | |
41 | |
42 | |
43 Installing | |
44 ---------- | |
45 | |
46 Install and update using `pip`_: | |
47 | |
48 .. code-block:: text | |
49 | |
50 pip install -U MarkupSafe | |
51 | |
52 .. _pip: https://pip.pypa.io/en/stable/quickstart/ | |
53 | |
54 | |
55 Examples | |
56 -------- | |
57 | |
58 .. code-block:: pycon | |
59 | |
60 >>> from markupsafe import Markup, escape | |
61 >>> # escape replaces special characters and wraps in Markup | |
62 >>> escape('<script>alert(document.cookie);</script>') | |
63 Markup(u'<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>') | |
67 >>> escape(Markup('<strong>Hello</strong>')) | |
68 Markup('<strong>hello</strong>') | |
69 >>> # Markup is a text subclass (str on Python 3, unicode on Python 2) | |
70 >>> # methods and operators escape their arguments | |
71 >>> template = Markup("Hello <em>%s</em>") | |
72 >>> template % '"World"' | |
73 Markup('Hello <em>"World"</em>') | |
74 | |
75 | |
76 Donate | |
77 ------ | |
78 | |
79 The Pallets organization develops and supports MarkupSafe and other | |
80 libraries that use it. In order to grow the community of contributors | |
81 and users, and allow the maintainers to devote more time to the | |
82 projects, `please donate today`_. | |
83 | |
84 .. _please donate today: https://palletsprojects.com/donate | |
85 | |
86 | |
87 Links | |
88 ----- | |
89 | |
90 * Website: https://palletsprojects.com/p/markupsafe/ | |
91 * Documentation: https://markupsafe.palletsprojects.com/ | |
92 * License: `BSD-3-Clause <https://github.com/pallets/markupsafe/blob/master/LICENSE.rst>`_ | |
93 * Releases: https://pypi.org/project/MarkupSafe/ | |
94 * Code: https://github.com/pallets/markupsafe | |
95 * Issue tracker: https://github.com/pallets/markupsafe/issues | |
96 * Test status: | |
97 | |
98 * Linux, Mac: https://travis-ci.org/pallets/markupsafe | |
99 * Windows: https://ci.appveyor.com/project/pallets/markupsafe | |
100 | |
101 * Test coverage: https://codecov.io/gh/pallets/markupsafe | |
102 | |
103 |