summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/filter/filter.module19
1 files changed, 13 insertions, 6 deletions
diff --git a/modules/filter/filter.module b/modules/filter/filter.module
index 41df662b2..f2bb71634 100644
--- a/modules/filter/filter.module
+++ b/modules/filter/filter.module
@@ -598,13 +598,20 @@ function theme_filter_guidelines($format) {
*/
/**
- * Implement hook_filter(). Contains a basic set of essential filters.
- * - HTML filter:
- * Validates user-supplied HTML, transforming it as necessary.
- * - Line break converter:
- * Converts newlines into paragraph and break tags.
- * - URL and e-mail address filter:
+ * Implement hook_filter().
+ *
+ * Set up a basic set of essential filters:
+ * - Limit allowed HTML tags:
+ * Restricts user-supplied HTML to certain tags, and removes dangerous
+ * components in allowed tags.
+ * - Convert line breaks:
* Converts newlines into paragraph and break tags.
+ * - Convert URLs into links:
+ * Converts URLs and e-mail addresses into links.
+ * - Correct broken HTML:
+ * Fixes faulty HTML.
+ * - Escape all HTML:
+ * Converts all HTML tags into visible text.
*/
function filter_filter($op, $delta = 0, $format = -1, $text = '') {
switch ($op) {