\CleanContentService
Service responsible for cleaning up content using purify and html tidy
- Author: marcus@silverstripe.com.au
- License: BSD License http://silverstripe.org/bsd-license/
Synopsis
class CleanContentService
{
- // members
- public static array $ignore_errors = ;
- public $purifier;
- public array $defaultPurifyOptions = ;
- // methods
- public void __construct()
- public void tidy()
- protected void rewriteShortcodes()
- public string purify()
- public void fixUtf8()
- public void reformatShortcodes()
Members
public
- $defaultPurifyOptions
- $ignore_errors
- $purifier
Methods
protected
- rewriteShortcodes() — removes %20 from shordcodes inside a href attr
public
- __construct()
- fixUtf8()
- purify() — Run html purifier over the content
- reformatShortcodes() — Reformats shortcodes after being run through htmlpurifier
- tidy()