Classes

Base class for HTML cleaning implementations.

This class handles the converting of HTML fragments between a string and a DOMDocument based representation.

Class representing a 'diff' between two sequences of HTML strings.

Cleans HTML using the HTMLPurifier package http://htmlpurifier.org/

Format a SQL Query for better readable output in HTML or Plaintext.

A simple parser that allows you to map BBCode-like "shortcodes" to an arbitrary callback.

Cleans HTML using the Tidy package http://php.net/manual/en/book.tidy.php

Support class for converting unicode strings into a suitable 7-bit ASCII equivalent.

Filter certain characters from "URL segments" (also called "slugs"), for nicer (more SEO-friendly) URLs.

Interfaces

A FilterInterface is given an input string and returns a filtered string. Replacements will be provided and performed (typically in regex format), and transliteration may be used as a separate service to replace characters rather than remove them.

Abstract interface for a class which handles shortcodes