PHPackages                             belniakmedia/craft-allow-nbsp-twig-filter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. belniakmedia/craft-allow-nbsp-twig-filter

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

belniakmedia/craft-allow-nbsp-twig-filter
=========================================

Unescape escaped nbsp entities via twig filter.

1.0.1(3y ago)040MITPHP

Since Jul 14Pushed 3y agoCompare

[ Source](https://github.com/BelniakMedia/craft-allow-nbsp-twig-filter)[ Packagist](https://packagist.org/packages/belniakmedia/craft-allow-nbsp-twig-filter)[ RSS](/packages/belniakmedia-craft-allow-nbsp-twig-filter/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (3)Used By (0)

Allow NBSP Twig Filter plugin for Craft CMS 4.x
===============================================

[](#allow-nbsp-twig-filter-plugin-for-craft-cms-4x)

This twig filter, when applied to an escaped twig string will un-escape the &amp;amp; entity that the &amp; in "&amp;nbsp;" was converted to by the initial escaping process. This allows content editors to insert their own non-breaking space into fields to prevent text widows on rendered pages.

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 4.0.0 or later. *(See tag 1.0.0 for Caft CMS 3.x)*

Installation
------------

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require belniakmedia/craft-allow-nbsp-twig-filter

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Allow &amp;nbsp; Twig Filter.

Allow &amp;nbsp; Twig Filter Overview
-------------------------------------

[](#allow-nbsp-twig-filter-overview)

We wanted a quick and easy way for our content editors to be able to insert entities manually without having them be escaped by the standard twig escape policy. This allows the standard escaping to happen and just unescapes &amp;amp;nbsp; back to &amp;nbsp;

Using Allow &amp;nbsp; Twig Filter
----------------------------------

[](#using-allow-nbsp-twig-filter)

Craft Template Example:

`{{ entry.description | allowNbsp }}`

Brought to you by [Belniak Media, Inc.](https://belniakmedia.com)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~800 days

Total

2

Last Release

1382d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ebaede952a8bd243632f06aee5b30c529503a33ad07ddb59941f9c45898c883a?d=identicon)[RickKukiela](/maintainers/RickKukiela)

---

Top Contributors

[![RickKukiela](https://avatars.githubusercontent.com/u/3813238?v=4)](https://github.com/RickKukiela "RickKukiela (1 commits)")

---

Tags

cmsCraftcraftcmscraft-pluginallow nbsp twig filter

### Embed Badge

![Health badge](/badges/belniakmedia-craft-allow-nbsp-twig-filter/health.svg)

```
[![Health](https://phpackages.com/badges/belniakmedia-craft-allow-nbsp-twig-filter/health.svg)](https://phpackages.com/packages/belniakmedia-craft-allow-nbsp-twig-filter)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k70](/packages/verbb-formie)[wbrowar/guide

A CMS Guide for Craft CMS.

6154.7k1](/packages/wbrowar-guide)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)[verbb/footnotes

Adds a footnotes feature to CKEditor fields and Twig templates.

213.6k](/packages/verbb-footnotes)[verbb/events

A full-featured plugin for event management and ticketing.

2311.9k](/packages/verbb-events)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
