Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
478 stars 306 forks source link

`&` sign in response from Try it translates to `\u0026` #2478

Open tlfzhylj opened 1 month ago

tlfzhylj commented 1 month ago

Bug description

In one of our APIs we return a URL in the response. The URL consist of & signs. If we test the API with the "Try it" functionality in the developer portal the URL in the response the & sign is translated to \u0026. If we do the same request from curl, Postman, Bruno, etc. the URL is formatted correctly with the & sign.

Expected behavior

Developer portal should not translate things in the response, and just show the response as it actually is.

Is your portal managed or self-hosted?

Managed

Additional context

From the response in the developer portal: Screenshot 2024-05-02 at 10 40 07

From the response in Bruno: Screenshot 2024-05-02 at 10 42 50