Showing results for 
Search instead for 
Did you mean: 

Convert html to text while preserving line breaks

There's already an HTML to text conversion action in Flow. However, when using this feature, line breaks are not preserved and separate sections are merged into one long paragraph which is not ideal. Is there a way it can be updated to preserve line breaks? Or is there perhaps an existing workaround that I do not know about?

Status: New
Regular Visitor

If you are saving the output to text file, the line break is there but notepad only able to show line break in CRLF. can use below code to convert it to CRLF for all LF.


uriComponentToString(replace(uriComponent(body('Html_to_text')), '%0A', '%0D%0A'))

Not applicable

Hi All!
For some reason that doesn't work for me, I use the expression as file content and the output text is still without line breaks. What might be the cause?


Advocate II

Line breaks are not possible when updating an Excel file, so please allow line breaks.