web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How do you display HTM...
Power Pages
Unanswered

How do you display HTML text within a View/List in Power Pages?

(1) ShareShare
ReportReport
Posted on by 375

Hi

Is there a way to display HTML text in a View/List normally/formatted?

I have a number of fields that use the rich text editor to add/edit content.

However, when displayed in a View/List within Power Pages it displays all the HTML formatting e.g.

Gary_Eden_0-1692110448751.png

I can use a form as read-only to display the formatted text in a popup window e.g.

Gary_Eden_1-1692110524576.png

But this is an added user step that seems unnecessary.

 

Is there a way to format the text inside the View/List to show the text without the HTML formatting?

 

Thanks in advance.

 

Categories:
I have the same question (0)
  • Verified answer
    OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    Hi @Gary_Eden ,

    You would need to use custom JS to achieve this. You would need to add a code on onload event, run it line by line, get the HTML as a text and insert it back as an HTML (be careful and sanitize your HTML to prevent possible XSS attacks). See sample code on how to work with list in JS from MS here - https://learn.microsoft.com/en-us/power-pages/configure/add-custom-javascript-list

  • Gary_Eden Profile Picture
    375 on at

    Hi @OOlashyn

    Thanks for pointing me in the right direction.

    I've already already been having a play with Liquid and FetchXML and had JavaScript experiments on my to do list. 

    Before working with PowerApps I was a web developer and with Power Pages I'm looking forward to brushing up on my CSS and JavaScript skills and applying them to Power Pages.

    Fun times ahead.

    Cheers

    Gary 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard