prettier: [JSX] Do not convert html-escaped entities to their prettier forms
Most HTML entity names & numbers are converted to their literal form.
Seems
<
>
are the only exceptions?
(
escaping was fixed in #557)
Is this expected?
<span>
// not converted
 
< <
> >
// converted
& &
" "
' '
á á
</span>
turns into
<span>
// not converted
< <
> >
// converted
& &
" "
' '
á á
</span>;
Thanks.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (7 by maintainers)
https://github.com/babel/babylon/pull/344 and https://github.com/babel/babel/pull/5256 have been approved – I am told they should be merged into Babel 7.0.
@MrEfrem this should have been fixed by #1165 🤞.
@MrEfrem That has been fixed in
master
and should be available in the next release!@rattrayalex Yes it is!
@oscar-b can you open a separate issue for that?