madebykind / craft.windontextension
Provides a `widont` filter in your Craft CMS templates
Installs: 35
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/madebykind/craft.windontextension
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2025-09-15 10:35:51 UTC
README
Provides a widont
filter in your Craft templates.
Installation
Drop the windontextension
directory into craft/plugins
, and install from the CP.
Usage
{{ entry.title | widont | raw }}
Caveat developer
Craft runs Twig with autoescape
on, so as the widont
filter replaces the last not trailing space in the filtered string with an HTML entity for a non-breaking space, so you will probably then want to pass its output to the raw
filter.
This is a bad idea for untrusted input.