Index: branches/RC/core/kernel/processors/tag_processor.php =================================================================== diff -u -r9286 -r9360 --- branches/RC/core/kernel/processors/tag_processor.php (.../tag_processor.php) (revision 9286) +++ branches/RC/core/kernel/processors/tag_processor.php (.../tag_processor.php) (revision 9360) @@ -136,14 +136,14 @@ function PostProcess($ret, $flag_values) { + if ($flag_values['html_escape']) { + $ret = htmlspecialchars($ret); + } if ($flag_values['js_escape']) { $ret = addslashes($ret); $ret = str_replace(Array("\r", "\n"), Array('\r', '\n'), $ret); $ret = str_replace('', "", $ret); } - 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);