From ce64aa00d9d1e9f5b7183af9bdde35adbe38f4b4 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 26 Jan 2010 15:38:54 -0700 Subject: [PATCH] Parameter documentation --- framework/Text_Filter/lib/Horde/Text/Filter/Xss.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/framework/Text_Filter/lib/Horde/Text/Filter/Xss.php b/framework/Text_Filter/lib/Horde/Text/Filter/Xss.php index 7822f37db..ff7d95780 100644 --- a/framework/Text_Filter/lib/Horde/Text/Filter/Xss.php +++ b/framework/Text_Filter/lib/Horde/Text/Filter/Xss.php @@ -6,6 +6,20 @@ * people *KNOW* HTML is a security hole, clean up what we can, and leave it * at that. * + * Filter parameters: + * ------------------ + *
+ * 'body_only' - (boolean) Only scan within the HTML body tags?
+ *               DEFAULT: true
+ * 'replace' - (string) The string to replace filtered tags with.
+ *             DEFAULT: 'XSSCleaned'
+ * 'strip_styles' - (boolean) Strip style tags?
+ *                  DEFAULT: true
+ * 'strip_style_attributes' - (boolean) Strip style attributes in all HTML
+ *                            tags?
+ *                            DEFAULT: true
+ * 
+ * * Copyright 2004-2010 The Horde Project (http://www.horde.org/) * * See the enclosed file COPYING for license information (LGPL). If you -- 2.11.0