Skip to content
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

[BUG] &nbsp (without semicolon) is treated as an entity. #1440

Open
mkucharski17 opened this issue Sep 6, 2024 · 0 comments
Open

[BUG] &nbsp (without semicolon) is treated as an entity. #1440

mkucharski17 opened this issue Sep 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mkucharski17
Copy link

Describe the bug:
&nbsp 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 &rarr; &larr; &nbsp; try this!</p><p>Let's &rarr &larr &nbsp try this!</p>

Html widget configuration:

         Html(
              data: "<p>Let's &rarr; &larr; &nbsp; try this!</p>"
                  "<p>Let's &rarr &larr &nbsp try this!</p>",
              style: {
                'p': Style(margin: Margins.all(0)),
              },
            ),

Expected behavior:
&nbsp should be treated as normal text.

Screenshots:
entities_example

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
ToolsDart 3.4.3DevTools 2.34.3
@mkucharski17 mkucharski17 added the bug Something isn't working label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant