PHPackages                             vdlp/oc-htmlpurifier-plugin - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. vdlp/oc-htmlpurifier-plugin

ActiveOctober-plugin[Validation &amp; Sanitization](/categories/validation)

vdlp/oc-htmlpurifier-plugin
===========================

Adds a standards compliant HTML filter to October CMS.

3.0.0(2y ago)27882GPL-2.0PHPPHP ^8.0.2CI passing

Since Jul 18Pushed 2y ago8 watchersCompare

[ Source](https://github.com/vdlp/oc-htmlpurifier-plugin)[ Packagist](https://packagist.org/packages/vdlp/oc-htmlpurifier-plugin)[ RSS](/packages/vdlp-oc-htmlpurifier-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (7)Used By (0)

Vdlp.HtmlPurifier
=================

[](#vdlphtmlpurifier)

An October CMS plugin which adds a standards compliant HTML filter to October CMS.

HTML Purifier is an HTML filtering solution that uses a unique combination of robust whitelists and agressive parsing to ensure that not only are XSS attacks thwarted, but the resulting HTML is standards compliant.

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

[](#installation)

**CLI:**

`php artisan plugin:install Vdlp.HtmlPurifier`

**October CMS:**

Go to Settings &gt; Updates &amp; Plugins &gt; Install plugins and search for 'HtmlPurifier'.

Configuration
-------------

[](#configuration)

To configure the filter execute this command:

```
php artisan vendor:publish --provider="Vdlp\HtmlPurifier\HtmlPurifierServiceProvider" --tag="config"

```

A configuration file named `config/htmlpurifier.php` is now created.

In depth information about configuration parameters can be found here:

Usage
-----

[](#usage)

Use the `|purify' in your Twig templates to apply the HTML Purifier filter.

```
{{ contentFromCms|purify }}

{{ contentFromExternalSource|purify }}

```

or

```
{{ 'Some random HTML string'|purify }}

```

For more information about templating in October CMS:

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 85% 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 ~490 days

Total

5

Last Release

901d ago

Major Versions

1.0.1 → 2.0.02020-08-18

2.0.1 → 3.0.02023-11-30

PHP version history (3 changes)2.0.0PHP ^7.1.3

2.0.1PHP ^7.1||^8.0

3.0.0PHP ^8.0.2

### Community

Maintainers

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

---

Top Contributors

[![adrenth](https://avatars.githubusercontent.com/u/5699988?v=4)](https://github.com/adrenth "adrenth (17 commits)")[![sander-beenen](https://avatars.githubusercontent.com/u/2843816?v=4)](https://github.com/sander-beenen "sander-beenen (3 commits)")

---

Tags

filterhtmlpurifieroctober-cmsoctobercmsphpstandards-compliant

### Embed Badge

![Health badge](/badges/vdlp-oc-htmlpurifier-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/vdlp-oc-htmlpurifier-plugin/health.svg)](https://phpackages.com/packages/vdlp-oc-htmlpurifier-plugin)
```

###  Alternatives

[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[ichikaway/cakeplus

Cake plus is cakephp plugin and provides some functions for CakePHP.

52101.1k1](/packages/ichikaway-cakeplus)[chrisshick/cakephp3-html-purifier

This is a CakePHP3 Purifier Plugin Behavior that cleanses data before it is marshalled into the entity.

12168.1k](/packages/chrisshick-cakephp3-html-purifier)[janvince/smallcontactform

Simple but flexible multi language contact form builder with custom fields, validation and passive antispam

307.4k](/packages/janvince-smallcontactform)

PHPackages © 2026

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