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 Automate
Unanswered

Remove font-size tag

(0) ShareShare
ReportReport
Posted on by 2

Hi all,

 

I have a powerapp that allows users to enter html text into a field. I'm creating a report that pulls the data from Sharepoint and sends out a formatted email. To clean up the formatting a little I want to ensure that the font size is the same for all entries. I also want to retain other html formatting like lists etc so I can use HTML to text.

 

My thought was to just remove the tag but it gets a little complex trying to account for the different possibilities. How would you remove the font tags from the text in a way that accounts for the different ways of changing the font.

font-size: 12.0pt;

font-size: 8pt;

font-size: 10px 

 
replace(
    variables('HighlightsTable'),
    slice(variables('HighlightsTable'),
        indexOf(variables('HighlightsTable'),'font-size:'),
        add(indexOf(variables('HighlightsTable'),'pt;'),3)
    ),
    ''
)
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @SimonH1000,

     

    Can you share a full sample of your HTML? Normally it should be surrounded by quotes in HTML5, correct? 

    <p style="font-size:30px">This is a paragraph.</p>

     

     

  • SimonH1000 Profile Picture
    2 on at

    Here are examples of the formatting I'm trying to remove. I don't have an example of it here but the users also have the ability to make the font bold as well. I'd like to keep the emphasis if possible.

     

    <span style="font-size:14px">
    <span style="font-size:11pt"> 

      

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard