Skip to main content

lektor-strip-html-tags

This is a simple Lektor plugin that creates a template filter to remove HTML tags from a string. The use it was created for was to do processing on HTML outputted from a Markdown content field. The Markdown is rendered into HTML, and this filter can turn that into simple text, which was then passed to the lektor-natural-language filters to get keywords, unsullied by things like <div> tags.

Example usage:

{{ this.body|striphtmltags }}

{% set var = '<p><strong>Hello</strong>World!</p>' %}
{{ var|striphtmltags }}

The last example will render as "Hello World!"

Metadata

Release files for lektor-strip-html-tags 0.3.1

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

Built distribution (wheel)

Table of built distributions (wheels) for lektor-strip-html-tags 0.3.1
File Interpreter ABI Platform Actions
lektor_strip_html_tags-0.3.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for lektor_strip_html_tags-0.3.1-py2.py3-none-any.whl

Release files / lektor_strip_html_tags-0.3.1-py2.py3-none-any.whl

Download URL lektor_strip_html_tags-0.3.1-py2.py3-none-any.whl
Size 3.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ed0a2e73b29cb3d7e05b8e5e636320bc232604eb1b1251bedc340663484cea02
BLAKE2b-256 checksum
How to use checksums
a87c2b7a80e5e9b817277d49dad9f2d67a4fd4956ffaee041ee544560939fa3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Security for lektor-strip-html-tags 0.3.1

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.

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