Skip to content

Label with HTML TextType does not display images on Android #21044

@sheyinn

Description

@sheyinn

Description

On the Android platform, a Label with TextType=Html that contains img tags does not render the image. This works perfectly well on iOS. I understand that it is ideal to use an Image control to display images, however, this is not an option in my use case.

The label displays comments fetched from an API and the comments usually contain emoji images embedded within as seen in the attached screenshot, but they are rendered as blank boxes.

I think it is important to mention that the mobile app I'm working on is an adaptation of an old native Android app with the same features, and in the native Android version, these images are rendered just fine.

image

Steps to Reproduce

  1. Create a ContentView
  2. Add a Label with TextType=Html
  3. Bind Html content containing an img tag with an absolute url to an emoji in the src attribute to the Text of the Label.

Link to public reproduction project repository

No response

Version with bug

8.0.3 GA

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions