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)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lektor_strip_html_tags-0.3.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |