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 | 2.1 KiB | 113 | 66 | |
LICENSE.rst | D | 12-May-2024 | 1.4 KiB | 29 | 23 | |
MANIFEST.in | D | 12-May-2024 | 186 | 10 | 9 | |
NOTICE | D | 12-May-2024 | 1.4 KiB | 29 | 23 | |
OAT.xml | D | 12-May-2024 | 4.4 KiB | 72 | 17 | |
PKG-INFO | D | 12-May-2024 | 3.7 KiB | 99 | 75 | |
README.OpenSource | D | 12-May-2024 | 687 | 11 | 10 | |
README.modification | D | 12-May-2024 | 780 | 22 | 16 | |
README.rst | D | 12-May-2024 | 1.9 KiB | 70 | 47 | |
__init__.py | D | 12-May-2024 | 8.7 KiB | 289 | 210 | |
_native.py | D | 12-May-2024 | 1.9 KiB | 76 | 58 | |
_speedups.c | D | 12-May-2024 | 7.2 KiB | 340 | 295 | |
_speedups.pyi | D | 12-May-2024 | 229 | 10 | 7 | |
bundle.json | D | 12-May-2024 | 1.1 KiB | 35 | 34 | |
py.typed | D | 12-May-2024 | 0 | |||
tox.ini | D | 12-May-2024 | 525 | 25 | 20 |
README.OpenSource
1[ 2 { 3 "Name" : "MarkupSafe", 4 "License" : "BSD 3-clause License", 5 "License File" : "LICENSE.rst", 6 "Version Number" : "2.0.1", 7 "Upstream URL" : "https://palletsprojects.com/p/markupsafe/", 8 "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." 9 } 10] 11
README.modification
1Name: MarkupSafe 2Version: 2.0.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://github.com/pallets/markupsafe/archive/refs/tags/2.0.1.zip 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 30 >>> # escape replaces special characters and wraps in Markup 31 >>> escape("<script>alert(document.cookie);</script>") 32 Markup('<script>alert(document.cookie);</script>') 33 34 >>> # wrap in Markup to mark text "safe" and prevent escaping 35 >>> Markup("<strong>Hello</strong>") 36 Markup('<strong>hello</strong>') 37 38 >>> escape(Markup("<strong>Hello</strong>")) 39 Markup('<strong>hello</strong>') 40 41 >>> # Markup is a str subclass 42 >>> # methods and operators escape their arguments 43 >>> template = Markup("Hello <em>{name}</em>") 44 >>> template.format(name='"World"') 45 Markup('Hello <em>"World"</em>') 46 47 48Donate 49------ 50 51The Pallets organization develops and supports MarkupSafe and other 52popular packages. In order to grow the community of contributors and 53users, and allow the maintainers to devote more time to the projects, 54`please donate today`_. 55 56.. _please donate today: https://palletsprojects.com/donate 57 58 59Links 60----- 61 62- Documentation: https://markupsafe.palletsprojects.com/ 63- Changes: https://markupsafe.palletsprojects.com/changes/ 64- PyPI Releases: https://pypi.org/project/MarkupSafe/ 65- Source Code: https://github.com/pallets/markupsafe/ 66- Issue Tracker: https://github.com/pallets/markupsafe/issues/ 67- Website: https://palletsprojects.com/p/markupsafe/ 68- Twitter: https://twitter.com/PalletsTeam 69- Chat: https://discord.gg/pallets 70