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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Converting to HTML whe...
Power Apps
Unanswered

Converting to HTML when using RichText input field

(0) ShareShare
ReportReport
Posted on by 34

Hello,

 

I have a PowerApp where I am converting the form/file information to HTML, then to PDF via a FLOW.

 

However when I manifest in HTML, the RichText is very large and not respecting the text size I want to use for the output.

 

Here is my HTML, and "BrowseGallery1.Selected.HL_Overview" is a RichText field.

<tr style='height:Auto'>
<td><p style='Font-size: 12px'>Design Details and/or Changes Requested: </p></td>
<td><p style='Font-size: 12px'>"&BrowseGallery1.Selected.HL_Overview&"</p></td>
</tr>

 

Thank you

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi, 

    Please try using below formula - 

    "<td><p style='font-size: 12px'>"&BrowseGallery1.Selected.HL_Overview&"</p></td>"

  • S_Burden_79 Profile Picture
    34 on at

    This looks like the same line of code that I have, except the 'F' in font is lower case.  However I did copy and paste this in, but still have the same result.

    S_Burden_79_0-1660846858924.png

     

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi,
    I think "HL_Overview" in your sharepoint list has "Use enriched text" functionality enabled and the vale Text in that column is getting font-size from the column itself. 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @S_Burden_79 

    Please consider changing your Formula to the following:

    <tr style='height:Auto'>
    <td><p style='Font-size: 12px'>Design Details and/or Changes Requested: </p></td>
    <td><p style='Font-size: 12px'>" & PlainText(BrowseGallery1.Selected.HL_Overview) & "</p></td>
    </tr>

     

    I hope this is helpful for you.

  • S_Burden_79 Profile Picture
    34 on at

    This worked!  Is there a way to maintain any of the line breaks?  i.e. its entered into PowerApps with bullets, or line breaks.  That all disappears when converted to PlainText.  Any way around this?

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @S_Burden_79 

    You can substitute line breaks prior to converting.

    i.e. 

    <tr style='height:Auto'>
    <td><p style='Font-size: 12px'>Design Details and/or Changes Requested: </p></td>
    <td><p style='Font-size: 12px'>" & 
     Substitute(
     PlainText(Substitute(BrowseGallery1.Selected.HL_Overview, "<br>", "~")),
     "~", "<br>"
     ) & "</p></td>
    </tr>

    This will substitute the <br>'s with a random character (not normally used) and then that character will be left over in the plain text.  Then a Substitute is used to change that character back to a "<br>".

    It gets a little icky if you have a lot of tags to preserve.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard