flutter_html
flutter_html copied to clipboard
[BUG] ` ` (without semicolon) is treated as an entity.
Describe the bug:
  should be treated as normal text. I tried other entities without semicolon eg &larr or &rarr and they work properly.
HTML to reproduce the issue:
<p>Let's → ← try this!</p><p>Let's &rarr &larr   try this!</p>
Html widget configuration:
Html(
data: "<p>Let's → ← try this!</p>"
"<p>Let's &rarr &larr   try this!</p>",
style: {
'p': Style(margin: Margins.all(0)),
},
),
Expected behavior:
  should be treated as normal text.
Screenshots:
Device details and Flutter/Dart/flutter_html versions:
Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 761747bfc5 (3 miesiące temu) • 2024-06-05 22:15:13 +0200
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3
Hmm definitely strange. I wonder if the html package we're using to parse the HTML is overcorrecting here. I'll look into this