cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SanCForer
Frequent Visitor

Html does not show content

Hi all,
I have a problem with HTML label. It is like it does not resolve the data.

 

1. I have created a flow to get some data and I'm saving this data into a collection. The data returns a string field with an HTML code.

 

SanCForer_1-1614623773110.png

 

 

SanCForer_0-1614623724657.png

 

 

2. Also, I created a gallery and added an HTML text control to show the HTML field.

- Here is the problem: The HTML control shows the data as a string:

 

SanCForer_2-1614625762037.png

 

I thought it could be solved if I added a doble "" but its the same:

 

SanCForer_3-1614625849486.png

 

The funnyest thing is that when I copy the code and uses it into another control using only the string it works fine:

 

SanCForer_4-1614625907914.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
SanCForer
Frequent Visitor

Thanks for your answer @RandyHayes

 

I find a way to solve it just using the function PlainText(ThisItem.'Microsoft.VSTS.TCM.Steps')

 

 

 

View solution in original post

4 REPLIES 4
RandyHayes
Super User III
Super User III

@SanCForer 

Try the following formula for your HTML text control in your Gallery:

    Mid(ThisItem.'Microsoft.VSTS.TCM.Steps', 2, Len(ThisItem.'Microsoft.VSTS.TCM.Steps')-2)

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!
SanCForer
Frequent Visitor

Thanks for your answer @RandyHayes 

 

Unfortunately same problem:

 

SanCForer_0-1614629743391.png

 

RandyHayes
Super User III
Super User III

@SanCForer 

Hmm, I originally saw a " starting your string, but now I am seeing the issue...your Html is Encoded.  So things like &lt;B&gt; will show up as <B> in the HTML Text control.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!
SanCForer
Frequent Visitor

Thanks for your answer @RandyHayes

 

I find a way to solve it just using the function PlainText(ThisItem.'Microsoft.VSTS.TCM.Steps')

 

 

 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (48,291)