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?
Solved! Go to Solution.
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
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
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 !
Hi Michael,
How do you get the images URL?
User | Count |
---|---|
139 | |
132 | |
75 | |
72 | |
69 |
User | Count |
---|---|
214 | |
196 | |
64 | |
62 | |
54 |