Page MenuHomePhabricator

Fix blog feed escaping of unicode characters
ClosedPublic

Authored by jasonbcox on Sep 16 2020, 20:40.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Commits
rABCWEBd02274910c4a: Fix blog feed escaping of unicode characters
Summary

The pattern correctly matches the unicode characters, but
should not be saving the u character in the group. Otherwise the output
is something like &#xu00e9; which is invalid and ends up rendering as
those plain characters rather than the expected é which is é

Test Plan

Remove the .slice(0, 3) from js/blog-feed.js to see more articles
if the recent ones do not display the above issue.
make serve
Navigate to localhost:4000 and see the feed rendering unicode characters correctly.

Diff Detail

Repository
rABCWEB Bitcoin ABC Website
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fix capture group escaping

This revision is now accepted and ready to land.Sep 16 2020, 21:57