Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix/title encoding bug #19187
The encoding that was recently added to the post title block works fine on standalone wp installs, but not on wpcom - Automattic/wp-calypso#38362 - this is because for some reason wpcom adds leading zeros to the html entity codes, and lodash unescape does not account for this.
Switching from the lodash unescape to WordPress decodeEntities resolves the issue without causing any problems that I can see.
How has this been tested?
Tested manually, and also added an additional unit test to make sure decodeEntities accounts for leading zeros.
Types of changes
Change string decoding method