Post with html chars to LinkedIn

Hi make people,

I’m reading data from airtable and posting it to LinkedIn.
It works, but when i add parenthesis characters to the post, the post is being cut off at that position.

Is there a solution to this?
Otherwise it would be a major limitation.

Thanks

Welcome to the Make community!

You could try escaping the characters that breaks the post, by adding a backslash or two before them.

E.g.: \\( or \(

Alternatively, instruct OpenAI not to use any parenthesis at all.

For more information, see Incorrect OutPut Linkedin module posting and javascript - LinkedIn Post API: post text get's cut off if contains "()" - Stack Overflow

2 Likes

Thanks, Escaping worked. Actually it is also a note in make itself, so i just copied the regex expression from there, it looks like this:

{{replace(1.`My Expression`; "/([|{}@[\]\(\)<>#*_~\\])/g"; "\$1")}}

Screenshot 2024-04-19 224135

6 Likes