• Home
Name Date Size #Lines LOC

..--

.gitattributesD12-May-2024631 1615

.gitignoreD12-May-202418 32

CHANGES.rstD12-May-20241.8 KiB9857

LICENSE.rstD12-May-20241.4 KiB2923

MANIFEST.inD12-May-2024140 98

NOTICED12-May-20241.4 KiB2923

OAT.xmlD12-May-20244.4 KiB7317

PKG-INFOD12-May-20244 KiB10280

README.OpenSourceD12-May-2024746 1211

README.modificationD12-May-2024845 2216

README.rstD12-May-20242.1 KiB7049

__init__.pyD12-May-20249.9 KiB328245

_compat.pyD12-May-2024558 3424

_constants.pyD12-May-20244.6 KiB265261

_native.pyD12-May-20241.8 KiB7056

_speedups.cD12-May-20249.7 KiB424345

bundle.jsonD12-May-20241 KiB4343

tox.iniD12-May-2024886 4539

README.OpenSource

1[
2    {
3        "Name"                  : "MarkupSafe",
4        "License"               : "BSD 3-clause License",
5        "License File"          : "LICENSE.rst",
6        "Version Number"        : "1.1.1",
7        "Owner"                 : "yaoxiaoyu1@huawei.com",
8        "Upstream URL"          : "https://palletsprojects.com/p/markupsafe/",
9        "Description"           : "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. Escaping is implemented in C so it is as efficient as possible."
10    }
11]
12

README.modification

1Name: MarkupSafe
2Version: 1.1.1
3License: BSD 3-clause License
4
5Website: https://palletsprojects.com/p/markupsafe/
6
7Description:(from Website)
8MarkupSafe implements a text object that escapes characters so it is safe to
9use in HTML and XML. Characters that have special meanings are replaced so that
10they display as the actual characters. This mitigates injection attacks,
11meaning untrusted user input can safely be displayed on a page.
12Escaping is implemented in C so it is as efficient as possible
13
14
15Source:
16https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-1.1.1.tar.gz
17MD5: 43fd756864fe42063068e092e220c57b
18
19Local Modifications:
20Only includes the markup directory from the tarball and the LICENSE and
21AUTHORS files, create soft link NOTICE to LICENSE, removing other stuff.
22

README.rst

1MarkupSafe
2==========
3
4MarkupSafe implements a text object that escapes characters so it is
5safe to use in HTML and XML. Characters that have special meanings are
6replaced so that they display as the actual characters. This mitigates
7injection attacks, meaning untrusted user input can safely be displayed
8on a page.
9
10
11Installing
12----------
13
14Install and update using `pip`_:
15
16.. code-block:: text
17
18    pip install -U MarkupSafe
19
20.. _pip: https://pip.pypa.io/en/stable/quickstart/
21
22
23Examples
24--------
25
26.. code-block:: pycon
27
28    >>> from markupsafe import Markup, escape
29    >>> # escape replaces special characters and wraps in Markup
30    >>> escape('<script>alert(document.cookie);</script>')
31    Markup(u'&lt;script&gt;alert(document.cookie);&lt;/script&gt;')
32    >>> # wrap in Markup to mark text "safe" and prevent escaping
33    >>> Markup('<strong>Hello</strong>')
34    Markup('<strong>hello</strong>')
35    >>> escape(Markup('<strong>Hello</strong>'))
36    Markup('<strong>hello</strong>')
37    >>> # Markup is a text subclass (str on Python 3, unicode on Python 2)
38    >>> # methods and operators escape their arguments
39    >>> template = Markup("Hello <em>%s</em>")
40    >>> template % '"World"'
41    Markup('Hello <em>&#34;World&#34;</em>')
42
43
44Donate
45------
46
47The Pallets organization develops and supports MarkupSafe and other
48libraries that use it. In order to grow the community of contributors
49and users, and allow the maintainers to devote more time to the
50projects, `please donate today`_.
51
52.. _please donate today: https://palletsprojects.com/donate
53
54
55Links
56-----
57
58*   Website: https://palletsprojects.com/p/markupsafe/
59*   Documentation: https://markupsafe.palletsprojects.com/
60*   License: `BSD-3-Clause <https://github.com/pallets/markupsafe/blob/master/LICENSE.rst>`_
61*   Releases: https://pypi.org/project/MarkupSafe/
62*   Code: https://github.com/pallets/markupsafe
63*   Issue tracker: https://github.com/pallets/markupsafe/issues
64*   Test status:
65
66    *   Linux, Mac: https://travis-ci.org/pallets/markupsafe
67    *   Windows: https://ci.appveyor.com/project/pallets/markupsafe
68
69*   Test coverage: https://codecov.io/gh/pallets/markupsafe
70