Skip to content

JSX: Convert HTML entities into UTF-8 #4125

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

Closed
majodev opened this issue Aug 3, 2015 · 2 comments
Closed

JSX: Convert HTML entities into UTF-8 #4125

majodev opened this issue Aug 3, 2015 · 2 comments
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@majodev
Copy link

majodev commented Aug 3, 2015

HTML entities within JSX-style-nodes e.g. <div>&nbsp;</div> are currently not converted into their UTF-8 representation (e.g. how babel does it). Are you planning to implement this?

@majodev majodev changed the title JSX: Support HTML entities into UTF-8 JSX: Convert HTML entities into UTF-8 Aug 3, 2015
@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label Aug 3, 2015
@RyanCavanaugh RyanCavanaugh self-assigned this Aug 3, 2015
@mhegazy mhegazy added this to the TypeScript 1.6 milestone Aug 3, 2015
RyanCavanaugh added a commit to RyanCavanaugh/TypeScript that referenced this issue Aug 20, 2015
RyanCavanaugh added a commit that referenced this issue Aug 21, 2015
Convert HTML entities to strings (#4125)
@RyanCavanaugh RyanCavanaugh added the Fixed A PR has been merged for this issue label Aug 21, 2015
@huan086
Copy link

huan086 commented Aug 23, 2016

Should this also handle &#?

It's crucial as typing { and } in jsx would be a pain without it. I use &#123; and &#125; as the substitute for { and }

@RyanCavanaugh
Copy link
Member

@huan086 please log a separate issue if that doesn't work

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

4 participants