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
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: