-
Notifications
You must be signed in to change notification settings - Fork 27.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symbol entities like → do not render properly #248
Comments
I thought this might be an issue with glamor's |
I can't reproduce the problem. It seems these symbols are correctly rendered to me. test(async t => {
const html = await render('/symbol')
t.true(html.includes('→'))
}) This test fails, but if I change it to the actual value ( t.true(html.includes('→')) |
These html special chars are converted to the actual characters when transpiling JSX. And it seems you'd have to set |
@nkzawa Yes, my apologies, my original repro doesn't seem to point out the issue. I went ahead and modified it. I am still unable to get the character to display correctly, even with
In DevTools, that |
A-ha,
No issue here, thanks for your help. |
I first noticed then while trying to add
»
to my markup, which was rendering as»
.Curiously, HMR seems to handle this just fine! I can change my markup to include
»
and save, and»
shows up as expected. A hard refresh, however, results in»
.As a quick repro you can save the following as
pages/symbol.js
:Note that
create-react-app
does not seem to suffer from this problem.The text was updated successfully, but these errors were encountered: