-
-
Notifications
You must be signed in to change notification settings - Fork 622
Open
Labels
bugCrush'em all.Crush'em all.
Description
Decision Table
- My issue does not look like “The HTML attribute 'xxx' is ignored” (unless we claim support for it)
- My issue does not look like “The HTML element
<yyy>
is not rendered”
Good Faith Declaration
- I have read the HELP document here: https://git.io/JBi6R
- I have read the CONTRIBUTING document here: https://git.io/JJ0Pg
- I have confirmed that this bug has not been reported yet
Description
I have noticed a strange behaviour that probably originates from the library trying to parse special characters in html (&, &lquote, ....), but failing to do so.
// Fails
<RenderHTML source={{ html: "&" }} />
// Works
<RenderHTML source={{ html: "&" }} />
// Fails
<RenderHTML source={{ html: "& " }} />
// Works
<RenderHTML source={{ html: " &" }} />
```
### React Native Information
```sh
don't know what to provide here
```
### RNRH Version
6.3.4
### Tested Platforms
- [ ] Android
- [x] iOS
- [ ] Web
- [ ] MacOS
- [ ] Windows
### Reproduction Platforms
- [ ] Android
- [x] iOS
- [ ] Web
- [ ] MacOS
- [ ] Windows
### Minimal, Reproducible Example
// Fails
<RenderHTML source={{ html: "&" }} />
// Works
<RenderHTML source={{ html: "&" }} />
// Fails
<RenderHTML source={{ html: "& " }} />
// Works
<RenderHTML source={{ html: " &" }} />
### Additional Notes
_No response_
Metadata
Metadata
Assignees
Labels
bugCrush'em all.Crush'em all.