cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Oliver_McErlane
Helper II
Helper II

Remove HTML tags from list item preview

Hi,

 

I have created a basic PowerApps app based on a SharePoint list, see screenshot below. 

In the preview and detail of each record, it displays html such as <div class="ExternalClass06B052F6BF094F01AF88E1804D9C5CCE"> on text fields.

How can I remove this?

 

Thank you,

Ollie

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

@Oliver_McErlane 

In your gallery control, you can use the HTML text control instead of a label. This will display the formatted content rather than the markup.

If you want to display the content without any formatting, you can call the PlainText function.

https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/functions/function-encode-decode


You would set the text property of your label to:

 

PlainText(ThisItem.YourSPField)

 

 

View solution in original post

1 REPLY 1
timl
Super User
Super User

@Oliver_McErlane 

In your gallery control, you can use the HTML text control instead of a label. This will display the formatted content rather than the markup.

If you want to display the content without any formatting, you can call the PlainText function.

https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/functions/function-encode-decode


You would set the text property of your label to:

 

PlainText(ThisItem.YourSPField)

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,133)