loongson/pypi/: markupsafe-1.1.1 metadata and description

Homepage Simple index Newer version available

Safely add untrusted strings to HTML/XML markup.

author Armin Ronacher
author_email armin.ronacher@active-4.com
classifiers
  • Development Status :: 5 - Production/Stable
  • Environment :: Web Environment
  • Intended Audience :: Developers
  • License :: OSI Approved :: BSD License
  • Operating System :: OS Independent
  • Programming Language :: Python
  • Programming Language :: Python :: 2
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.4
  • Programming Language :: Python :: 3.5
  • Programming Language :: Python :: 3.6
  • Programming Language :: Python :: 3.7
  • Topic :: Internet :: WWW/HTTP :: Dynamic Content
  • Topic :: Software Development :: Libraries :: Python Modules
  • Topic :: Text Processing :: Markup :: HTML
license BSD-3-Clause
maintainer The Pallets Team
maintainer_email contact@palletsprojects.com
platform
  • UNKNOWN
project_urls
  • Documentation, https://markupsafe.palletsprojects.com/
  • Code, https://github.com/pallets/markupsafe
  • Issue tracker, https://github.com/pallets/markupsafe/issues
requires_python >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*

Because this project isn't in the mirror_whitelist, no releases from root/pypi are included.

File Tox results History
MarkupSafe-1.1.1-cp27-cp27mu-linux_loongarch64.whl
Size
28 KB
Type
Python Wheel
Python
2.7
  • Replaced 1 time(s)
  • Uploaded to loongson/pypi by loongson 2022-07-26 07:15:04
MarkupSafe-1.1.1-cp36-cp36m-linux_loongarch64.whl
Size
31 KB
Type
Python Wheel
Python
3.6
  • Replaced 1 time(s)
  • Uploaded to loongson/pypi by loongson 2022-08-26 02:52:26
MarkupSafe-1.1.1-cp37-cp37m-linux_loongarch64.whl
Size
32 KB
Type
Python Wheel
Python
3.7
  • Replaced 2 time(s)
  • Uploaded to loongson/pypi by loongson 2022-08-08 02:43:27
MarkupSafe-1.1.1-cp38-cp38-linux_loongarch64.whl
Size
32 KB
Type
Python Wheel
Python
3.8
  • Replaced 2 time(s)
  • Uploaded to loongson/pypi by loongson 2022-08-26 06:14:35
MarkupSafe-1.1.1-cp39-cp39-linux_loongarch64.whl
Size
32 KB
Type
Python Wheel
Python
3.9
  • Replaced 1 time(s)
  • Uploaded to loongson/pypi by loongson 2022-08-26 07:23:34
MarkupSafe-1.1.1.tar.gz
Size
20 KB
Type
Source
  • Replaced 3 time(s)
  • Uploaded to loongson/pypi by loongson 2022-08-26 07:23:36

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.

Installing

Install and update using pip:

pip install -U MarkupSafe

Examples

>>> from markupsafe import Markup, escape
>>> # escape replaces special characters and wraps in Markup
>>> escape('<script>alert(document.cookie);</script>')
Markup(u'&lt;script&gt;alert(document.cookie);&lt;/script&gt;')
>>> # wrap in Markup to mark text "safe" and prevent escaping
>>> Markup('<strong>Hello</strong>')
Markup('<strong>hello</strong>')
>>> escape(Markup('<strong>Hello</strong>'))
Markup('<strong>hello</strong>')
>>> # Markup is a text subclass (str on Python 3, unicode on Python 2)
>>> # methods and operators escape their arguments
>>> template = Markup("Hello <em>%s</em>")
>>> template % '"World"'
Markup('Hello <em>&#34;World&#34;</em>')