You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most certainly a bug in https://github.com/fb55/htmlparser2 ; will try to upgrade to latest version available when I have the time, hoping this is fixed. If you have the time, you may try to parse directly with htmlparser2 and see if an error is raised. That would help with narrowing-down the culprit.
It seems htmlparser2 has an issue with decoding entities. The following workaround fixes the issue: <RenderHTMLSource htmlParserOptions={{ decodeEntities: false }} source={{ html: '<p>&</p>' }} contentWidth={contentWidth} />
But obviously this will leave stuff like < undecoded
I'm also encountering this issue. I've ended up adding the decodeEntities: false parser option, and then using a separate lib (he) to decode my source html.
Decision Table
<yyy>
is not rendered”Good Faith Declaration
Description
RenderHTMLSource
breaks whenever passing&
in the source.html propScreenshot
React Native Information
RNRH Version
6.3.4
Tested Platforms
Reproduction Platforms
Minimal, Reproducible Example
Additional Notes
No response
The text was updated successfully, but these errors were encountered: