#244

Product support

Visit this product's website for support.

Categories

  • Security
  • Utility

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 aggressive parsing to ensure that not only are XSS attacks thwarted, but the resulting HTML is standards compliant.

Other plugins by Alwin Drenth

Redirect

Redirect (Editors' Choice) - Advanced Redirect plugin for October CMS

RssFetcher

RssFetcher - Fetches RSS/Atom feeds from different sources to publish on your website or dashboard.

Installation

Use the Add to project button on the plugin page.

Configuration

To configure the filter execute this command:

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

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

In depth information about configuration parameters can be found here: http://htmlpurifier.org/live/configdoc/plain.html.

Usage

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

{{ contentFromCms|purify }}

{{ contentFromExternalSource|purify }}

or

{{ '<a href="" target="_blank">Some random HTML string</a>'|purify }}

For more information about templating in October CMS: http://octobercms.com/docs/markup/templating

1.0.1

First version of Adrenth.HtmlPurifier

Jan 20, 2017