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 Automate / Can HTML entities be c...
Power Automate
Unanswered

Can HTML entities be converted?

(0) ShareShare
ReportReport
Posted on by 24

Hello, 

 

New to Power Automate here. Thanks for your help with my issue.

 

I have a flow that is trigged by receiving an email to Outlook. The body of the email contains a table with data fields with delimiters.

I use HTML to Text to extract the data and then split outputs in SharePoint Create item action to upload to a list.

Example: split(outputs('Html_to_text')?['body'],'|')[1]

 

The problem is the text has HTML entities that are still in the text. For example, a date/time value may be received in the email as 12/15/23 17:12. But after HTML to Text, it is actually 12/15/23<br>17:12. 

 

I have determined the data source is correct and it seems Outlook is inserting the HTML. Unfortunately, the source cannot send the mail as plain text. How can convert the HTML message to text and avoid the HTML entities from cluttering my data. Even if I find a way to strip the entities, I am concerned it would leave 12/15/2317:12 which is still improper formatting and would not be recognized as a valid date without the space between date and time.  

 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Willstoddard,

    You should make sure that if you have an html table in your email body, or just some html format string.

    To convert the html to text, generally, the 'Html_to_text' action is enough, however, not sure how you configure your email body.

     

     

  • Willstoddard Profile Picture
    24 on at

    Thank you for your reply. I found that the SharePoint Create Item Action was inserting the HTML. Once I added a trim function, the issue resolved.

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 582

#3
Haque Profile Picture

Haque 529

Last 30 days Overall leaderboard