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

.NET MAUI how to render HTML in Label #25211

Open
SaraIsabelleLima opened this issue Oct 11, 2024 · 5 comments
Open

.NET MAUI how to render HTML in Label #25211

SaraIsabelleLima opened this issue Oct 11, 2024 · 5 comments
Labels
area-controls-label Label, Span platform/android 🤖 platform/iOS 🍎 s/needs-repro Attach a solution or code which reproduces the issue s/no-recent-activity Issue has had no recent activity s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@SaraIsabelleLima
Copy link

Description

.NET MAUI To render HTML content in a Label on iOS and Android, I am using the TextType="Html" attribute on the Label element. However, iOS does not render any HTML, while Android only supports bold text. Any ideas on how to fix this issue?"

                        <Label Text="{Binding texto}"
                                     Style="{StaticResource CommonTextStyle}"
                                     x:Name="LabelText"
                                     FontSize="17"
                                     TextType="Html"/>

I want the TextType="Html" to recognize the HTML tags in my text and display them on the screen.

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

9.0.0-rc.1.24453.9

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@SaraIsabelleLima SaraIsabelleLima added the t/bug Something isn't working label Oct 11, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@jaosnz-rep jaosnz-rep added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Oct 15, 2024
@jaosnz-rep
Copy link

jaosnz-rep commented Oct 15, 2024

I can repro this issue at Android & iOS platform on the latest 17.12.0 Preview 2.1(9.0.0-rc.2.24503.2 & 9.0.0-rc.1.24453.9).

@drasticactions drasticactions added the s/needs-repro Attach a solution or code which reproduces the issue label Oct 16, 2024
Copy link
Contributor

Hi @SaraIsabelleLima. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@drasticactions
Copy link
Contributor

Can you please create a repro project that shows the HTML you're trying to render?

@dotnet-policy-service dotnet-policy-service bot added the s/no-recent-activity Issue has had no recent activity label Oct 21, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-label Label, Span platform/android 🤖 platform/iOS 🍎 s/needs-repro Attach a solution or code which reproduces the issue s/no-recent-activity Issue has had no recent activity s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants