Replace line breaks in Google Sheet with <br>

Status: Open · Asked by Lars on · 0 views

Lars — Question ·

I'm creating a workflow that retrieves content from a Google Sheet and posts it on FB pages + on Instagram. FB works fine, but the Instagram module in Connect doesn't handle line breaks correctly, instead publishing them as \n on Instagram. So I need to find a way to replace line breaks from the source to
for the Instagram post. Text Formatter is the module to use, I expect, and I don't quite know how to set it up - specifically, what to search for that can be replaced with
.

Grateful for assistance :)

Preeti Paryani — Reply ·

Hello @Lars

You can use the "Replace Text" action event of Text Formatter and can map the fields as shown in the image attached.

To learn how to use Replace text action event in Text formatter please refer to this to tutorial -

youtube.com/watch v=oFvzL6iaDAI:125

Please let us know if it works for you.

Thanks & Regards,
Preeti Paryani
Customer Support Associate
Pabbly.com
Himesh Soni — Reply ·

Hello @Lars ,
Please refer below screenshot.

If you are still not able to solve this on your own feel free to DM me and we can do a free zoom call. FYI I'm not from Pabbly Connect team, just a freelancer who helps other Pabbly users.

Automation Freelancer
Contact me - https://www.facebook.com/himeshsoni07
Email - [EMAIL][email hidden][/EMAIL]
Lars — Reply ·

Thanks for helping out with this. And I do understand how to replace strings with other strings, but how do I replace line breaks that aren't visible characters? Here's the content of a cell in Google Sheets. The line breaks aren't displayed as visible characters, but the Instagram component replaces them with \n.

"Kanske har du kämpat för att rycka upp dig, ta dig själv i kragen, förändra dina tankar, trycka undan de jobbiga tankarna och känslorna? Jag gissar att det inte hjälpte eftersom du läser detta? Du är långt ifrån ensam - sådant hjälper nämligen i bästa fall bara för stunden, men det löser inte grundorsakerna till att du mår dåligt.

Jag har lång erfarenhet av att arbeta med psykisk/emotionell ohälsa. Jag arbetar med både individer och grupper, enskilt och i organisationer, för att hitta vägen ur låsningar, mörker, ångest och annan ohälsa. På senare år har arbetet allt oftare handlat om rädsla - vad det är, vad som är verkligt, hur det går att frigöra sig från rädsla som ett hinder i livet."

Himesh Soni — Reply ·

In text formatter try with replace text event and in find field put \n and in replace field put
. For reference use above image.

Automation Freelancer
Contact me - https://www.facebook.com/himeshsoni07
Email - [EMAIL][email hidden][/EMAIL]

Back to all forum threads · Log in to reply