#49160 closed defect (bug) (invalid)
REST API: Characters escaped in response
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.7 |
Component: | REST API | Keywords: | |
Focuses: | rest-api | Cc: |
Description
Example when writing test's you get in JSON response: test’s
Is this standard behavior, up to end-client to parse-decode?
Change History (5)
#3
in reply to:
↑ 1
@
5 years ago
Replying to TimothyBlynJacobs:
Hi @wpfed,
Thanks for the ticket! Could you provide a minimal reproducible test case? When I call
wp_json_encode
for'test’s'
I get back"test\u2019s"
.
Thanks for getting back, for example if you paste this into your browser https://wptavern.com/wp-json/wp/v2/posts
Then you can see many instances of ’
Note: See
TracTickets for help on using
tickets.
Hi @wpfed,
Thanks for the ticket! Could you provide a minimal reproducible test case? When I call
wp_json_encode
for'test’s'
I get back"test\u2019s"
.