lektor-strip-html-tags 0.3.1
pip install lektor-strip-html-tags
Released:
Strip HTML tags, effectively turning HTML into plain text.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD-3-Clause)
- Author: Terminal Labs
- Tags Lektor, plugin, html, static-site, regex, jinja2, jinja, filter
Classifiers
- Environment
- Framework
- License
Project description
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!"
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD-3-Clause)
- Author: Terminal Labs
- Tags Lektor, plugin, html, static-site, regex, jinja2, jinja, filter
Classifiers
- Environment
- Framework
- License
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file lektor_strip_html_tags-0.3.1-py2.py3-none-any.whl
.
File metadata
- Download URL: lektor_strip_html_tags-0.3.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed0a2e73b29cb3d7e05b8e5e636320bc232604eb1b1251bedc340663484cea02 |
|
MD5 | 410b47637c8a5523dece7f5d40d3ef6f |
|
BLAKE2b-256 | a87c2b7a80e5e9b817277d49dad9f2d67a4fd4956ffaee041ee544560939fa3d |