2017 © Pedro Peláez
 

silverstripe-vendormodule htmlpurifier

A simple wrapper around HtmlPurifier [http://htmlpurifier.org/]

image

g4b0/htmlpurifier

A simple wrapper around HtmlPurifier [http://htmlpurifier.org/]

  • Thursday, May 31, 2018
  • by g4b0
  • Repository
  • 3 Watchers
  • 9 Stars
  • 98 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 4 Forks
  • 3 Open issues
  • 9 Versions
  • 390 % Grown

The README.md

HtmlPurifier

A simple wrapper around HtmlPurifier [http://htmlpurifier.org/], (*1)

Introduction

This module adds a wrapper named Purifier around the famous HtmlPurifier. You can use HtmlPurifier by itself, or use some of the custom function to have clean HTML or XHTML code, TXT code or to strip the [embed] tags. It's also possible to extend the Purifier class to add your own purifier functions., (*2)

Requirements

  • SilverStripe >= 4.1 < 5.0, (*3)

    For 3.x installations refer to the 1.x version, (*4)

Installation

Install the module through composer:, (*5)

composer require g4b0/htmlpurifier
composer update

Usage

Whenever you need to purify your HTML code, eg. during OnBeforeWrite, OnAfterWrite or in a custom search, just call the wrapper function:, (*6)

$content = Purifier::PurifyTXT($p->Content);
$content = Purifier::RemoveEmbed($content);

The Versions

31/05 2018

dev-master

9999999-dev

A simple wrapper around HtmlPurifier [http://htmlpurifier.org/]

  Sources   Download

GPL-2.0-only

The Requires

 

by Gabriele Brosulo

html silverstripe seo w3c htmlpurifier wcag

31/05 2018

2.0.1

2.0.1.0

A simple wrapper around HtmlPurifier [http://htmlpurifier.org/]

  Sources   Download

GPL-2.0-only

The Requires

 

by Gabriele Brosulo

html silverstripe seo w3c htmlpurifier wcag

10/05 2018

2.0.0

2.0.0.0

A simple wrapper around HtmlPurifier [http://htmlpurifier.org/]

  Sources   Download

GPL-2.0-only

The Requires

 

by Gabriele Brosulo

html silverstripe seo w3c htmlpurifier wcag

16/03 2018

1.0.5

1.0.5.0

A simple wrapper around HtmlPurifier [http://htmlpurifier.org/]

  Sources   Download

GPL-2.0-only

The Requires

 

by Gabriele Brosulo - Zirak

html silverstripe seo w3c htmlpurifier wcag

15/09 2015

1.0.4

1.0.4.0

A simple wrapper around HtmlPurifier [http://htmlpurifier.org/]

  Sources   Download

GPL-2

The Requires

 

by Gabriele Brosulo - Zirak

html silverstripe seo w3c htmlpurifier wcag

06/05 2015

1.0.1

1.0.1.0

A simple wrapper around HtmlPurifier [http://htmlpurifier.org/]

  Sources   Download

GPL-2

The Requires

 

by Gabriele Brosulo - Zirak

html silverstripe seo w3c htmlpurifier wcag

06/05 2015

1.0.2

1.0.2.0

A simple wrapper around HtmlPurifier [http://htmlpurifier.org/]

  Sources   Download

GPL-2

The Requires

 

by Gabriele Brosulo - Zirak

html silverstripe seo w3c htmlpurifier wcag

06/05 2015

1.0.3

1.0.3.0

A simple wrapper around HtmlPurifier [http://htmlpurifier.org/]

  Sources   Download

GPL-2

The Requires

 

by Gabriele Brosulo - Zirak

html silverstripe seo w3c htmlpurifier wcag

21/11 2014

1.0.0

1.0.0.0

A simple wrapper around HtmlPurifier [http://htmlpurifier.org/]

  Sources   Download

GPL-2

The Requires

 

by Gabriele Brosulo - Zirak

html silverstripe seo w3c htmlpurifier wcag