[wp-trac] [WordPress Trac] #53860: REST API returns special characters as Unicode Decimal Code

WordPress Trac noreply at wordpress.org
Mon Aug 2 13:49:35 UTC 2021


#53860: REST API returns special characters as Unicode Decimal Code
-------------------------+-----------------------------
 Reporter:  utill        |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  REST API     |    Version:  5.8
 Severity:  minor        |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 When using the wordpress rest api, the api returns special characters as
 unicode decimal code instead of the correct character.

 How to reproduce:
 create fresh wordpress install and a new post with "&" in the title.
 Query http://[url]/wp-json/wp/v2/posts and check post.title.rendered field

 Instead of just "&" it will display "&# 038;" (without the space)

 It would be optimal if this would be converted serverside.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53860>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list