[wp-trac] [WordPress Trac] #49160: REST API: Characters escaped in response

WordPress Trac noreply at wordpress.org
Thu Jan 9 17:26:25 UTC 2020


#49160: REST API: Characters escaped in response
-------------------------------+------------------------------
 Reporter:  wpfed              |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  REST API           |     Version:  4.7
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  rest-api
-------------------------------+------------------------------

Comment (by wpfed):

 Replying to [comment:1 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 ’

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49160#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list