Skip to main content
deleted 3 characters in body
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64

That is not URL encoding, that is HTML entity encoding.

By default, the API returns "safe" values; see the filters doc:

Any string returned as a result of an API call with a safe filter will be inline-able into HTML without script-injection concerns. That is to say, no additional sanitizing (encoding, HTML tag stripping, etc.) will be necessary on returned strings.

That means that special characters (<>'"&, etc.) will be HTML entity encoded by default.

If you run the same query with an "unsafe" filter (See the doc), you can often get the raw values:

{
  "items": [
    {
      ...
      "account_id""user_id": 271760562459,
      ...
      "display_name": "Mike Sherrill 'Cat Recall'",
      ...

That is not URL encoding, that is HTML entity encoding.

By default, the API returns "safe" values; see the filters doc:

Any string returned as a result of an API call with a safe filter will be inline-able into HTML without script-injection concerns. That is to say, no additional sanitizing (encoding, HTML tag stripping, etc.) will be necessary on returned strings.

That means that special characters (<>'"&, etc.) will be HTML entity encoded by default.

If you run the same query with an "unsafe" filter (See the doc), you can often get the raw values:

{
  "items": [
    {
      ...
      "account_id": 271760,
      ...
      "display_name": "Mike Sherrill 'Cat Recall'",
      ...

That is not URL encoding, that is HTML entity encoding.

By default, the API returns "safe" values; see the filters doc:

Any string returned as a result of an API call with a safe filter will be inline-able into HTML without script-injection concerns. That is to say, no additional sanitizing (encoding, HTML tag stripping, etc.) will be necessary on returned strings.

That means that special characters (<>'"&, etc.) will be HTML entity encoded by default.

If you run the same query with an "unsafe" filter (See the doc), you can often get the raw values:

{
  "items": [
    {
      ...
      "user_id": 562459,
      ...
      "display_name": "Mike Sherrill 'Cat Recall'",
      ...
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64

That is not URL encoding, that is HTML entity encoding.

By default, the API returns "safe" values; see the filters doc:

Any string returned as a result of an API call with a safe filter will be inline-able into HTML without script-injection concerns. That is to say, no additional sanitizing (encoding, HTML tag stripping, etc.) will be necessary on returned strings.

That means that special characters (<>'"&, etc.) will be HTML entity encoded by default.

If you run the same query with an "unsafe" filter (See the doc), you can often get the raw values:

{
  "items": [
    {
      ...
      "account_id": 271760,
      ...
      "display_name": "Mike Sherrill 'Cat Recall'",
      ...