Index: branches/unlabeled/unlabeled-1.15.2/core/kernel/processors/tag_processor.php =================================================================== diff -u -r7641 -r7784 --- branches/unlabeled/unlabeled-1.15.2/core/kernel/processors/tag_processor.php (.../tag_processor.php) (revision 7641) +++ branches/unlabeled/unlabeled-1.15.2/core/kernel/processors/tag_processor.php (.../tag_processor.php) (revision 7784) @@ -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 = '';