Update misleading comment about RFC4627

RFC 4627 does not dictate escaping of HTML special characters
This commit is contained in:
Teoh Han Hui 2016-09-01 12:16:03 +08:00 committed by GitHub
parent 09e4e49b2a
commit 72b6c9e0b9

View File

@ -27,7 +27,7 @@ class JsonResponse extends Response
protected $data;
protected $callback;
// Encode <, >, ', &, and " for RFC4627-compliant JSON, which may also be embedded into HTML.
// Encode <, >, ', &, and " characters in the JSON, making it also safe to be embedded into HTML.
// 15 === JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT
protected $encodingOptions = 15;