Index: trunk/core/kernel/processors/tag_processor.php =================================================================== diff -u -N -r4880 -r4996 --- trunk/core/kernel/processors/tag_processor.php (.../tag_processor.php) (revision 4880) +++ trunk/core/kernel/processors/tag_processor.php (.../tag_processor.php) (revision 4996) @@ -50,7 +50,13 @@ } //echo htmlspecialchars($tag->GetFullTag()).'
'; - return $this->$Method($params); + $ret = $this->$Method($params); + if (isset($params['js_escape']) && $params['js_escape']) { + $ret = str_replace('\'', ''', $ret); + $ret = addslashes($ret); + $ret = str_replace(Array("\r", "\n"), Array('\r', '\n'), $ret); + } + return $ret; } else {