#49160 closed defect (bug) (invalid)
REST API: Characters escaped in response
| Reported by: | wpfed | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | REST API | Version: | 4.7 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | rest-api |
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
@
7 years ago
Replying to TimothyBlynJacobs:
Hi @wpfed,
Thanks for the ticket! Could you provide a minimal reproducible test case? When I call
wp_json_encodefor'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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @wpfed,
Thanks for the ticket! Could you provide a minimal reproducible test case? When I call
wp_json_encodefor'test’s'I get back"test\u2019s".