Skip to main content

Functional, streaming approach to HTML generation

Project description

html_generators

TODO - explain how to use

Escaping

In general, anything you pass as content or an attribute of an Element will be escaped.

The only exceptions are:

  • Style
  • Script
  • Comment

Content passed to these nodes will NOT be escaped (since the escaping rules for them are more relaxed, and you often want/need to put literal '<' or '>' characters in them). You should never pass untrusted user content to these generators.

In addition, any content passed to MarkSafe will not be escaped.

Project details


Download files

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

Source Distribution

html_generators-1.7.0.tar.gz (13.9 kB view hashes)

Uploaded Source

Built Distribution

html_generators-1.7.0-py3-none-any.whl (30.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page