Inconsistent performance of the LinkedIn image module

I occasionally face a problem with the LinkedIn Image module. It sometimes fails to post the entire text content mapped from OpenAI chat-completion module. I am seeking advice on resolving this issue. Any insights or solutions are greatly appreciated.

Scenario setup

OpenAI module->drive image download->Linkedin Image post module->delete that image from drive

Content generated from OpenAI module

LinkedIn image post with incomplete text content


I think It is happening because of Text cropping - When using the LinkedIn post, certain characters reserved for specific elements in the text format need to be escaped or replaced using the replace function.

If your post contains these character *|, { }, @, [ ], ( ), < >, #, , , _, and ~ then, make use of the "" to escape reserved elements for the text format.

Hope this helps!