Newer Version Available
Response Body Encoding
These characters are escaped in all strings:
| Character | Escaped as |
|---|---|
| < | < |
| > | > |
| " | " |
| ' | ' |
| \ | \ |
| & | & |
URL values included in response payloads have special encoding. The main part of the URL is URL-encoded as per RFC2396, and the query string is HTML-form encoded. This encoding cannot be turned off.
API output can be used in many contexts. Don’t assume that the default entity encoding is appropriate for all contexts. Using API output inside HTML attribute values, inside URLs, with JavaScript, inside <script> tags, and inside CSS all require different encoding. See the Open Web Application Security Project for information on how to handle API output in different contexts.
Clients can request raw (unencoded) output. Set the X-Chatter-Entity-Encoding HTTP header in a request to false.