Index: trunk/core/kernel/processors/tag_processor.php =================================================================== diff -u -N -r7635 -r7855 --- trunk/core/kernel/processors/tag_processor.php (.../tag_processor.php) (revision 7635) +++ trunk/core/kernel/processors/tag_processor.php (.../tag_processor.php) (revision 7855) @@ -53,7 +53,7 @@ $backup_special = $this->Special; // process all possible flags: begin - $flags = Array('js_escape', 'result_to_var', 'pass_params', 'html_escape'); + $flags = Array('js_escape', 'result_to_var', 'pass_params', 'html_escape', 'strip_nl'); $flag_values = Array(); foreach ($flags as $flag_name) { @@ -84,6 +84,10 @@ if ($flag_values['html_escape']) { $ret = htmlspecialchars($ret); } + if ($flag_values['strip_nl']) { + // 1 - strip \r,\n; 2 - strip tabs too + $ret = preg_replace($flag_values['strip_nl'] == 2 ? "/[\r\n\t]/" : "/[\r\n]/", '', $ret); + } if ($flag_values['result_to_var']) { $this->Application->Parser->SetParam($flag_values['result_to_var'], $ret); $ret = '';