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!"

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
lektor_strip_html_tags-0.3.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

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

Release history Release notifications | RSS feed

This release

0.3.1 This release

1 release file

0.3

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

2 release files

0.1

2 release files

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