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 / How to remove leading ...
Power Automate
Unanswered

How to remove leading and trailing \r\n from a string output from Html to text action?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am getting following output string from my 'Html to text' action:

 

\r\n\r\nWe are done\r\n\r\n\r\n

 

How do I remove the leading and trailing \r\n\r\n from this string?

Here is my flow

Workflow.jpg

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Anonymous 

     

    Please try the below using replace expression.

     

    image.png

     

    The expression I used above is as follows:

     

    replace(outputs('Compose'),'\r\n','')
     
    Thanks

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 Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard