cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Impactful Individual
Impactful Individual

Converting HTML to Text

Hi,

 

I'm trying to convert a value I recieve via API from HTML to plain text. I need to post this info to another API that doesn't accept HTML.

 

Even though there are a number of 'div' and '&nbsp' in the HTML, the action simply removes all the HTML tags and squishs all the text together without any spaces.

2019-04-11_0952.png

Is this the expected behaviour of this action? Seems a bit pointless if this is the case.

 

Thanks,

Sam

1 ACCEPTED SOLUTION

Accepted Solutions
Solution Sage
Solution Sage

Hi @SamPo ,

I have made some tests on my side.

I am afraid it is the expected behaviour of this action.

You can use some different HTML for a test.

When I use the <p> tag, the text will have spaces.

Capture1.PNG

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Solution Sage
Solution Sage

Hi @SamPo ,

I have made some tests on my side.

I am afraid it is the expected behaviour of this action.

You can use some different HTML for a test.

When I use the <p> tag, the text will have spaces.

Capture1.PNG

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

I have same issue. I want to convert email text (may be in Rich text or HTML) to plain text and send to sQL for inserting records. I have used "HTML To Plain text connector" and it display content with formatting into variable. But when I am assigning same variable to SQL stored procedure, there it shows "\n" in place of paragraphs. Also all spacing is killed. Do you have any suggestion to counter that?

To me, this is not really a solution. Is there a way to preserve the spaces, etc?

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (8,033)