Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.gitattributes | D | 12-May-2024 | 631 | 16 | 15 | |
.gitignore | D | 12-May-2024 | 18 | 3 | 2 | |
CHANGES.rst | D | 12-May-2024 | 1.8 KiB | 98 | 57 | |
LICENSE.rst | D | 12-May-2024 | 1.4 KiB | 29 | 23 | |
MANIFEST.in | D | 12-May-2024 | 140 | 9 | 8 | |
NOTICE | D | 12-May-2024 | 1.4 KiB | 29 | 23 | |
OAT.xml | D | 12-May-2024 | 4.4 KiB | 73 | 17 | |
PKG-INFO | D | 12-May-2024 | 4 KiB | 102 | 80 | |
README.OpenSource | D | 12-May-2024 | 746 | 12 | 11 | |
README.modification | D | 12-May-2024 | 845 | 22 | 16 | |
README.rst | D | 12-May-2024 | 2.1 KiB | 70 | 49 | |
__init__.py | D | 12-May-2024 | 9.9 KiB | 328 | 245 | |
_compat.py | D | 12-May-2024 | 558 | 34 | 24 | |
_constants.py | D | 12-May-2024 | 4.6 KiB | 265 | 261 | |
_native.py | D | 12-May-2024 | 1.8 KiB | 70 | 56 | |
_speedups.c | D | 12-May-2024 | 9.7 KiB | 424 | 345 | |
bundle.json | D | 12-May-2024 | 1 KiB | 43 | 43 | |
tox.ini | D | 12-May-2024 | 886 | 45 | 39 |
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'<script>alert(document.cookie);</script>') 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>"World"</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