Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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)
    ),
    ''
)
  • SimonH1000 Profile Picture
    2 on at
    Re: Remove font-size tag

    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"> 

      

  • Expiscornovus Profile Picture
    32,140 Most Valuable Professional on at
    Re: Remove font-size tag

    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>

     

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1