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 p tags f...
Power Automate
Answered

How to remove p tags from a column text in power automate

(0) ShareShare
ReportReport
Posted on by 79

Hello,

I know this has been asked a few times, and I have followed many solutions. None worked perfectly for me but this comes closest. 

This is my flow:

JustLearning50_0-1668774567213.png

This is what I have in for the 'remove HTML tags ' expression:

replace(replace(replace(replace(replace(body('Create_HTML_table'),'&lt;', ' '), 'p&gt;', ' '),'&lt;', ' '), '/p&gt;', ' ') as this is what the table output is showing as: '<td>&lt;p&gt;This is a test to see if the flow works.&lt;/p&gt;\n</td></tr>'

;

 

This is what i get in my email

 

JustLearning50_1-1668774751612.png

 

Could anyone explain why the '/' is left behind in my output, and how I could get rid of it. I thought it would all be viewed as a string esp when the 'p>'(p&gt) is replaced.

Thanks for your help.

 

Categories:
I have the same question (0)
  • Verified answer
    annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @JustLearning50  first you are replacing p&gt; with '', and when again its time to replace /p&gt; the replace function will not find /p&gt; because p&gt; is already replaced by ''. So first do replace of /p&gt;  and then do replace of p&gt;

  • JustLearning50 Profile Picture
    79 on at

    Of course, I cannot believe I didn't see that. Thank you very much.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard