Moodle  2.2.1
http://www.collinsharper.com
filter_tidy Class Reference
Inheritance diagram for filter_tidy:
Collaboration diagram for filter_tidy:

Public Member Functions

 filter ($text, array $options=array())

Detailed Description

Definition at line 40 of file filter.php.


Member Function Documentation

filter ( text,
array options = array() 
)

Override this function to actually implement the filtering.

Parameters:
$textsome HTML content.
array$optionsoptions passed to the filters
Returns:
the HTML content after the filtering has been applied.

Configuration for tidy. Feel free to tune for your needs, e.g. to allow proprietary markup.

Do a quick check using strpos to avoid unnecessary work

If enabled: run tidy over the entire string

Reimplemented from moodle_text_filter.

Definition at line 41 of file filter.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations