diff --git a/framework/web/helpers/CJavaScript.php b/framework/web/helpers/CJavaScript.php index d2bee64c6..3363e18c6 100644 --- a/framework/web/helpers/CJavaScript.php +++ b/framework/web/helpers/CJavaScript.php @@ -51,8 +51,9 @@ class CJavaScript * If you are encoding user input, make sure $safe is set to true. * * @param mixed $value PHP variable to be encoded - * @param boolean $safe If true, 'js:' will not be allowed while - * {@link CJavaScriptExpression} will allow you to pass JavaScript expressions. + * @param boolean $safe If true, 'js:' will not be allowed. In case of + * wrapping code with {@link CJavaScriptExpression} JavaScript expression + * will stay as is no matter what value this parameter is set to. * Default is false. This parameter is available since 1.1.11. * @return string the encoded string */ diff --git a/framework/web/helpers/CJavaScriptExpression.php b/framework/web/helpers/CJavaScriptExpression.php index 700d1cd3b..8ebe481af 100644 --- a/framework/web/helpers/CJavaScriptExpression.php +++ b/framework/web/helpers/CJavaScriptExpression.php @@ -10,8 +10,7 @@ /** * CJavaScriptExpression represents a JavaScript expression that does not need escaping. - * It can be passed to {@link CJavaScript::encode()} and the code will stay as is - * no matter if $safe set to true or not. + * It can be passed to {@link CJavaScript::encode()} and the code will stay as is. * * @author Alexander Makarov * @package system.web.helpers