cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jambo1
Advocate II
Advocate II

Strip HTML from a text field without using HTML to text

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

3 REPLIES 3
v-litu-msft
Community Support
Community Support

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.

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

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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (2,231)