PHPackages                             silverstripe-australia/silverstripe-cleancontent - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. silverstripe-australia/silverstripe-cleancontent

ActiveSilverstripe-module[Utility &amp; Helpers](/categories/utility)

silverstripe-australia/silverstripe-cleancontent
================================================

Provides some user-configurable settings for whether content is 'cleaned'.

3.0.1(10y ago)72.0k3[2 PRs](https://github.com/nyeholt/silverstripe-cleancontent/pulls)BSD-3-ClausePHP

Since May 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/nyeholt/silverstripe-cleancontent)[ Packagist](https://packagist.org/packages/silverstripe-australia/silverstripe-cleancontent)[ RSS](/packages/silverstripe-australia-silverstripe-cleancontent/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (8)Used By (0)

SilverStripe Clean Content module
=================================

[](#silverstripe-clean-content-module)

A module that provides HTML Tidy and Purify capabilities

Note: This is the SS3 version of the module! Please checkout the ss24 branch for the SilverStripe 2.4 compatible version

Basic Usage
-----------

[](#basic-usage)

Add the module to your project, and add the appropriate extension to your data objects via your site's mysite/\_config.php file

`Object::add_extension('Page', 'CleanContentExtension');`

You can have tidy/purify applied to Content fields when content is saved by selecting options on the Content / Cleaning tab, or use the $Clean(FieldName) option from your templates. Using $Clean on its own will by default use the Content field.

Note that for $Clean to work, you must still select the appropriate cleaning options on the Content / Clean tab.

By default, new pages have cleaning on save enabled, with HTML Tidy in effect, but not Purify. This can be changed by setting the statics in CleanContentExtension, which default as follows.

```
static $clean_on_save = true;
static $default_tidy = true;
static $default_purify = false;

```

Maintainer Contacts
-------------------

[](#maintainer-contacts)

- Marcus Nyeholt

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

[](#requirements)

- SilverStripe 2.4+

License
-------

[](#license)

This module is licensed under the BSD license at

This module makes use of the HTML Purifier library from which is licensed under the Lesser GPL, a copy of which can be found at cleancontent/code/thirdparty/htmlpurifier-4.0.0-lite/LICENSE

Project Links
-------------

[](#project-links)

- [GitHub Project Page](https://github.com/nyeholt/silverstripe-cleancontent)
- [Issue Tracker](https://github.com/nyeholt/silverstripe-cleancontent/issues)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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 ~65 days

Recently: every ~96 days

Total

7

Last Release

3675d ago

Major Versions

1.0.3 → 2.0.02016-05-23

2.0.0 → 3.0.02016-06-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/25cb1c56a7ab949d1e6b28a2a04862ce1cffe1799a291e1797f8dfd33cd83716?d=identicon)[nyeholt](/maintainers/nyeholt)

---

Top Contributors

[![nyeholt](https://avatars.githubusercontent.com/u/161730?v=4)](https://github.com/nyeholt "nyeholt (3 commits)")

---

Tags

utf8silverstripepurifyHTMLtidy

### Embed Badge

![Health badge](/badges/silverstripe-australia-silverstripe-cleancontent/health.svg)

```
[![Health](https://phpackages.com/badges/silverstripe-australia-silverstripe-cleancontent/health.svg)](https://phpackages.com/packages/silverstripe-australia-silverstripe-cleancontent)
```

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[oat-sa/tao-core

TAO core extension

66143.7k122](/packages/oat-sa-tao-core)[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k69](/packages/verbb-formie)[getdkan/dkan

DKAN Open Data Catalog

387138.7k2](/packages/getdkan-dkan)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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