Skip to main content

Cuts the tags and attributes from HTML that are not in the whitelist. Their content is leaves.

Project description

Cuts the tags and attributes from HTML that are not in the whitelist. Their content is leaves.

You can use the symbol * to allow all tags and/or attributes.

Note that the script and style tags are removed with content.

The module is based on HTMLParser Class - in the standard Python package. No need to pull a dependence, what is also sometimes can be a plus.

Project details


Release history Release notifications

History Node

0.1.9

This version
History Node

0.1.8

History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
html-purifier-0.1.8.zip (88.9 kB) Copy SHA256 hash SHA256 Source None Jun 25, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page