mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-08 14:55:10 +02:00
switch from keep_bad 6 to keep_bad 2; remove tags but keep element content (4 and 6 keep element content only if text (pcdata) is valid in parent element as per specs, this may lead to textloss if balance is switched on)
This commit is contained in:
@ -44,8 +44,9 @@ class felamimail_bo
|
||||
* @array
|
||||
*/
|
||||
static $htmLawed_config = array('comment'=>1, //remove comments
|
||||
'keep_bad'=>6,
|
||||
'keep_bad'=>2, //remove tags but keep element content (4 and 6 keep element content only if text (pcdata) is valid in parent element as per specs, this may lead to textloss if balance is switched on)
|
||||
'balance'=>1,//turn off tag-balancing (config['balance']=>0). That will not introduce any security risk; only standards-compliant tag nesting check/filtering will be turned off (basic tag-balance will remain; i.e., there won't be any unclosed tag, etc., after filtering)
|
||||
'direct_list_nest' => 1,
|
||||
'tidy'=>1,
|
||||
'elements' => "* -script",
|
||||
'deny_attribute' => 'on*',
|
||||
|
Reference in New Issue
Block a user