{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/10574","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/10574/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/10574/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/10574/events","html_url":"https://github.com/yiisoft/yii2/issues/10574","id":126643670,"number":10574,"title":"BaseArrayHelper::htmlEncode() change","user":{"login":"DrDeath72","id":2282657,"avatar_url":"https://avatars.githubusercontent.com/u/2282657?v=3","gravatar_id":"","url":"https://api.github.com/users/DrDeath72","html_url":"https://github.com/DrDeath72","followers_url":"https://api.github.com/users/DrDeath72/followers","following_url":"https://api.github.com/users/DrDeath72/following{/other_user}","gists_url":"https://api.github.com/users/DrDeath72/gists{/gist_id}","starred_url":"https://api.github.com/users/DrDeath72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrDeath72/subscriptions","organizations_url":"https://api.github.com/users/DrDeath72/orgs","repos_url":"https://api.github.com/users/DrDeath72/repos","events_url":"https://api.github.com/users/DrDeath72/events{/privacy}","received_events_url":"https://api.github.com/users/DrDeath72/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:enhancement","name":"type:enhancement","color":"d7e102"}],"state":"closed","locked":false,"assignee":{"login":"samdark","id":47294,"avatar_url":"https://avatars.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/16","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.8","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/16/labels","id":1242959,"number":16,"title":"2.0.8","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":61,"closed_issues":2,"state":"open","created_at":"2015-08-05T22:18:21Z","updated_at":"2016-01-16T13:41:55Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-01-14T12:17:07Z","updated_at":"2016-01-16T13:41:55Z","closed_at":"2016-01-16T13:41:55Z","body":"BaseArrayHelper::htmlEncode() must be equal to BaseHtml::encode()\r\n```php\r\n    public static function htmlEncode($data, $valuesOnly = true, $doubleEncode = true)\r\n    {\r\n        $d = [];\r\n        foreach ($data as $key => $value) {\r\n            if (!$valuesOnly && is_string($key)) {\r\n                $key = htmlspecialchars($key, ENT_QUOTES | ENT_SUBSTITUTE, Yii::$app ? Yii::$app->charset : 'UTF-8', $doubleEncode);\r\n            }\r\n            if (is_string($value)) {\r\n                $d[$key] = htmlspecialchars($value, ENT_QUOTES | ENT_SUBSTITUTE, Yii::$app ? Yii::$app->charset : 'UTF-8', $doubleEncode);\r\n            } elseif (is_array($value)) {\r\n                $d[$key] = static::htmlEncode($value, $valuesOnly, $doubleEncode);\r\n            } else {\r\n                $d[$key] = $value;\r\n            }\r\n        }\r\n\r\n        return $d;\r\n    }\r\n```"}}