cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Convert HTML to Text is wrapping text over multiple lines

I have a 1 line HTML table but due to the width of this, when I convert HTML to text it is wrapping over multiple lines. I need the text to be single line only for an integration with another system. Is there any way to change the line width for the txt outputs?

 

Screenshot below showing this:

Capture.PNG

2 REPLIES 2
Highlighted
Resident Rockstar
Resident Rockstar

@sammybridge 

 

Hey Mate,

 

I have the same problem, and this is a known problem: https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Convert-html-to-text-while-preserving-line-... 

 

It will be a good feature to have, please UP VOTE the idea.

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Highlighted

Hi @CFernandes 

 

My understanding is that you want page breaks where the HTML is breaking is that right? If so, you can achieve this by using this code:

 

replace(body('Create_HTML'), '</td></tr>''<br /></td></tr>')
 
My problem is that the width of the txt file isn't quite long enough so it is breaking at points where it shouldn't.

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (8,503)