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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard