-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Setting a Label of TextType HTML with encoded HTML causes crash. #13319
Labels
area-controls-label
Label, Span
fixed-in-8.0.0-preview.1.7762
Look for this fix in 8.0.0-preview.1.7762!
platform/windows 🪟
t/bug
Something isn't working
Milestone
Comments
drasticactions
changed the title
Encoded HTML for Label using TextType HTML causes hard crash.
Setting a Label of TextType HTML with HTML causes crash.
Feb 14, 2023
drasticactions
changed the title
Setting a Label of TextType HTML with HTML causes crash.
Setting a Label of TextType HTML with encoded HTML causes crash.
Feb 14, 2023
ghost
added
the
legacy-area-controls
Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor
label
Feb 14, 2023
Updated the above, this should only be happening on Windows, on https://cs.github.com/dotnet/maui/blob/8e32da638be53924277d24eb7b75f255916ff828/src/Core/src/Platform/Windows/TextBlockExtensions.cs#L114 |
And I'm closing this as it's a dupe of #11409 |
ghost
locked as resolved and limited conversation to collaborators
Mar 16, 2023
samhouts
added
the
fixed-in-8.0.0-preview.1.7762
Look for this fix in 8.0.0-preview.1.7762!
label
May 10, 2023
Eilon
removed
the
legacy-area-controls
Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor
label
May 10, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area-controls-label
Label, Span
fixed-in-8.0.0-preview.1.7762
Look for this fix in 8.0.0-preview.1.7762!
platform/windows 🪟
t/bug
Something isn't working
Description
Label
supports HTML via the TextTypeHTML
Ex.
This should render text that uses HTML to be rendered as native elements. However, if your HTML string includes HTML Encoded elements (Ex.
) it blows up on a System.Text.Xml exception:This causes a hard crash.
Steps to Reproduce
HTML
Link to public reproduction project repository
https://github.com/drasticactions/MauiRepros/tree/main/MauiHtmlLabelBug
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
All Platforms.
Did you find any workaround?
Decode the text yourself before setting it to the string with a Converter... although if you're already decoding the text, using the text type is kinda useless.
Relevant log output
The text was updated successfully, but these errors were encountered: