Skip to main content
Community site session details

Community site session details

Session Id : tvSypiSwG8mSCyvW9Lmj3P
Power Automate - Building Flows
Unanswered

Strip HTML from a text field without using HTML to text

Like (0) ShareShare
ReportReport
Posted on 16 Jan 2020 09:57:00 by 96

Hi all,

 

my flow is being passed some HTML formatted text that I want to pass to an approval connector. The approval then sends the mail with all the tags in it. 

 

I would normally want to use the HTML to Text connector, however my organisation has disabled it (don't ask....) and there isnt a chance of them re-enabling it for some time to come. 

 

Does anyone have any ideas on how I could strip the HTML from a string without using the HTML to text connector?

 

Many thanks

 

Jambo

  • RS-30052043-0 Profile Picture
    on 12 Mar 2020 at 18:50:29
    Re: Strip HTML from a text field without using HTML to text

    I have this same problem.  The MS Forms multi-line input box wraps all the text in a <div> tag, and then when you send it out in the Approvals email body it does not process the <div> tag so it comes through as normal text and shows the actual <div> tag.  

     

    I have not been able to find a way to strip the HTML.  I use MS Forms to input my data and Flow it to a Custom List in sharepoint, so I am looking at moving my approvals part to after the record is inserted into the Custom List and hoping that the HTML tags have been stripped internally somehow by the Custom List.

  • Jambo1 Profile Picture
    96 on 17 Jan 2020 at 09:15:01
    Re: Strip HTML from a text field without using HTML to text

    Thanks for that @v-litu-msft , and that is the root of the problem

     

    Is there another round about way to convert my HTML formatted string to plain text without the use of the HTML to text converter?

     

    Jambo

  • v-litu-msft Profile Picture
    on 17 Jan 2020 at 02:16:40
    Re: Strip HTML from a text field without using HTML to text

    Hi @Jambo1,

     

    Unfortunately, there is no way to add HTML formate text field into the Approval body.

    However, it supports to add the MarkDown syntax into the description:

    https://docs.microsoft.com/en-us/power-automate/approvals-markdown-support

    Annotation 2020-01-17 101550.png

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading started
Loading complete