cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RussellGove
Level 10

HTML Text control in PowerApps does not render images

Hi,

I have a powerapps applicattion that's used used to display news articles from a sharepoint list named 'Posts';.  The list has a field called 'Body; of type Enhanced rich text (Rich text with pictures, tables, and hyperlinks). I am displaying that in a poerapps HTML Text control.

 

The html text has image tags in it 

<img alt="October Fest 50K.jpg" src="/sites/TronNews/Documents/October%20Fest%2050K.jpg"  />

The HTML text copntrol does not render the images. I tried removing the alt tag, and adding the absolute url to the image, but it does not work.

 

How do i get the HTML Text control to display HTML Text with images?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: HTML Text control in PowerApps does not render images

Follow the example below:

"Show your <b><font color=blue>HTML</font></b> text here.
<img src=""https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTf8peeAQ8Jbw4lowjdYM9OYVJFJr8EwgGNTsJ6BtbqPdNHWz2m""
alt=""Testing"" width=""500"" height=""100"">"

Things to note:

when using the img tag within the HTMLText control, we need to add double quotes twice where it needs a double quote.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: HTML Text control in PowerApps does not render images

Follow the example below:

"Show your <b><font color=blue>HTML</font></b> text here.
<img src=""https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTf8peeAQ8Jbw4lowjdYM9OYVJFJr8EwgGNTsJ6BtbqPdNHWz2m""
alt=""Testing"" width=""500"" height=""100"">"

Things to note:

when using the img tag within the HTMLText control, we need to add double quotes twice where it needs a double quote.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Gaëlle
Level 8

Re: HTML Text control in PowerApps does not render images

Hello Michael @v-micsh-msft!

 

I have a question, How do you double a quote ?

I am trying with Substitute, but 1) I can't think of a way to automatize this during my whole string's length (which can be variable) and 2) How do you escape a quote inPA ? I tried to write "\"" but it won't work.. I tried to write """""" to add 2 quotes but it does not seem to work...

 

Thanks a lot !

trainblazer
Level: Powered On

Re: HTML Text control in PowerApps does not render images

Hi Michael,

 

How do you get the images URL?

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,213)