web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

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

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • abm abm Profile Picture
    32,585 Most Valuable Professional on at
    Re: How to remove leading and trailing \r\n from a string output from Html to text action?

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard