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 Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,698)