Showing results for 
Search instead for 
Did you mean: 
Responsive Resident
Responsive Resident

Need Help With Fine-Tuning Rich Text Formatting

When designing a rich-text interface for an app, one problem I had was that I did not know all the tagging nuances of the rich-text box. So I did what I thought was the second best thing.


  1. I took a Word Document and inputted the (rich) text with formatting that I would like to input. I used curly-brackets to indicate the blanks that variable data would eventually be plugged intoimage.png
  2. Next I created a Rich-Text Editor in Powerapps and label. The Label.Text property is set to RichText.HtmlText. The net result looked something like this:image.png
  3. The rich-text editor essentially took the raw rich-text from my Microsoft Word application and recreated it in the rich-text editor. I have to note that the spacing in the rich-text editor is less-than-satisfactory. I mean, just compare screenshot-1 with screenshot-2.
    • Anyway, it produced some text that I could use. I also note that PowerApps (or any programming language for that matter) doesn't play well with quotes because quotes are typically used to indicate the beginning and close of a string/text value. So in order to fix this, I use Notepad and replace all occurrences of quote (") with two quotes ("").
  4. Now I place this modified text into the final rich-text label and enclose it in quotes. The net result is something like this:
  5. image.png
  6. Eventually, I would surround the text with Substitute functions: 
      ...tag syntax..., 
        "{Date}",   ThisItem.publishDate),
        "{Header}", ThisItem.articleHeader),
        "{Body}",   ThisItem.articleBody),
        "{Source}", ThisItem.articleSource)

 So in some ways, it sort of worked, but I'm not satisfied with the spacing. Consider the differences side-by-side:



My question is: has anyone strugged with formatting rich-text and what method have you used to ensure a satisfactory formatting? Or is there a resource out there for me to learn html text formatting so that I can micromanage all these settings? Any tip you might have is appreciated. Thanks.


Helpful resources

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

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,835)