Skip to main content

Djang0parser

Multifunctional html sanitizer with code highlighting and django integration

Installing

In settings set VALID_TAGS and VALID_ATTRS, like:
>>> VALID_TAGS = 'a strong img cut'
>>> VALID_ATTRS = 'href src'

Add djang0parser to INSTALLED_APPS and run syncdb.

Usage

For text sanitizing use:
>>> from djang0parser.utils import parse
>>> parse(text)
or:
>>> parse(text, 'a b i img', 'src style')
For reverting changes use:
>>> from djang0parser.utils import unparse
>>> unparse(parsed_text)
For finding user mention use:
>>> from djang0parser.utils import find_mentions
>>> find_mentions(text)
For cut and full cut(fcut) use:
>>> from djang0parser.utils import cut
>>> preview, text = cut(full_text)

Metadata

Release files for django-parser 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-parser 0.3
File Size Uploaded Provenance
django-parser-0.3.tar.gz 4.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-parser 0.3
File Interpreter ABI Platform
django_parser-0.3-py2-none-any.whl Python 2 none any Details

Total release size: 11.1 kB

Release files / django-parser-0.3.tar.gz

Download URL django-parser-0.3.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5d81511d2b32967c86d0a460677016d71fa65a7fdd8f9c2bdda4ae308f796359
BLAKE2b-256 checksum
How to use checksums
2b0d40f1e1abe3dca683afdbf22aadf993ae23b18bf4c7b7319b1008143e6da3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_parser-0.3-py2-none-any.whl

Download URL django_parser-0.3-py2-none-any.whl
Size 7.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
5aebb19744a8eea46dd481fbe821527fb8b7c06d52cbea7790c662e32e00ee89
BLAKE2b-256 checksum
How to use checksums
a1ece0a2af50fbd820544af22e57fd66abe9ddf3212bb32d010119324ca96b6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-parser 0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page