Preserve line breaks
-
Line breaks in the custom message are not displayed on LinkedIn.
I know this question has been asked several months ago, but as this persons notices it doesn’t look like it’s a limitation of LinkedIn, because when including POST_CONTENT it does indeed show line breaks on LinkedIn.I digged in a bit further in the code and did some debugging, but it seems like the line breaks are removed in an early stage from the ‘post_meta’.
So, I believe, what happens is the following;
1. You enter a custom share message with line breaks and POST_CONTENT included
2. This custom share message is saved before being used, at this point the plugin (or wordpress) removes the line-breaks from the message.
3. The plugin fetches the post_meta (with line breaks already stripped) and then replaces the POST_CONTENT shortcode with text which includes the line breaks.
4. Message is shared on LinkedIn where only the line breaks in the POST_CONTENT are shown.I didn’t find it yet.. but maybe this gives you good directions and maybe you know directly where to modify it in order to work?
- The topic ‘Preserve line breaks’ is closed to new replies.