Opened 3 years ago
Last modified 3 years ago
#53860 new enhancement
REST API returns special characters as Unicode Decimal Code
Reported by: | utill | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | minor | Version: | 5.8 |
Component: | REST API | Keywords: | |
Focuses: | Cc: |
Description
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.
Change History (1)
This ticket was mentioned in Slack in #meta by sergey. View the logs.
3 years ago
Note: See
TracTickets for help on using
tickets.