|
| | filter ($text, array $options=[]) |
| | Override this function to actually implement the filtering.
|
| |
| | filter_stage_post_clean (string $text, array $options) |
| | Filter HTML text at the very end after text is sanitised.
|
| |
| | filter_stage_pre_clean (string $text, array $options) |
| | Filter HTML text before sanitising text.
|
| |
| | filter_stage_pre_format (string $text, array $options) |
| | Filter text before changing format to HTML.
|
| |
| | filter_stage_string (string $text, array $options) |
| | Filter simple text coming from format_string().
|
| |
| | hash () |
| |
| | setup ($page, $context) |
| | Setup page with filter requirements and other prepare stuff.
|
| |
|
|
context | $context |
| | The context we are in.
|
| |
|
array | $localconfig |
| | Any local configuration for this filter in this context.
|
| |
◆ filter()
| filter_tidy::filter |
( |
| $text, |
|
|
array | $options = [] ) |
Override this function to actually implement the filtering.
Filter developers must make sure that filtering done after text cleaning does not introduce security vulnerabilities.
- Parameters
-
| string | $text | some HTML content to process. |
| array | $options | options passed to the filters |
- Return values
-
| string | the HTML content after the filtering has been applied. |
Reimplemented from moodle_text_filter.
The documentation for this class was generated from the following file: