madebykind/craft.windontextension

Provides a `widont` filter in your Craft CMS templates

Maintainers

Package info

github.com/madebykind/craft.widont

pkg:composer/madebykind/craft.windontextension

Statistics

Installs: 35

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.1 2015-06-02 11:25 UTC

This package is auto-updated.

Last update: 2026-02-15 11:33:53 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.