2017 © Pedro Peláez
 

silverstripe-module silverstripe-cleancontent

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

image

silverstripe-australia/silverstripe-cleancontent

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

  • Friday, June 10, 2016
  • by nyeholt
  • Repository
  • 2 Watchers
  • 8 Stars
  • 1,892 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 8 Versions
  • 2 % Grown

The README.md

SilverStripe Clean Content module

A module that provides HTML Tidy and Purify capabilities, (*1)

Note: This is the SS3 version of the module! Please checkout the ss24 branch for the SilverStripe 2.4 compatible version, (*2)

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, (*3)

Object::add_extension('Page', 'CleanContentExtension');, (*4)

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., (*5)

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

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., (*7)

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

Maintainer Contacts

Requirements

  • SilverStripe 2.4+

License

This module is licensed under the BSD license at http://silverstripe.org/BSD-license, (*8)

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

The Versions

10/06 2016

dev-master

9999999-dev

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

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe utf8 htmltidy purify

10/06 2016

3.0.1

3.0.1.0

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

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe utf8 htmltidy purify

10/06 2016

3.0.0

3.0.0.0

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

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe utf8 htmltidy purify

23/05 2016

2.0.0

2.0.0.0

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

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe utf8 htmltidy purify

28/05 2015

1.0.3

1.0.3.0

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

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe utf8 htmltidy purify

21/05 2015

1.0.2

1.0.2.0

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

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe utf8 htmltidy purify

15/05 2015

1.0.1

1.0.1.0

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

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe utf8 htmltidy purify

15/05 2015

1.0.0

1.0.0.0

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

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe utf8 htmltidy purify