By Christopher Ambler on Sunday, 14 June 2020
Posted in Technical Issues
Replies 5
Likes 0
Views 679
Votes 0
As you can see in the two screen shots, blog posts with newlines do not have them properly respected on Facebook. There is a translation missing in the preparation of the content, I'm sure.
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

By default we will stripped all the HTML tag from this file JoomlaFolder/administrator/components/com_easyblog/includes/oauth/adapters/facebook/client.php .
·
Sunday, 14 June 2020 09:51
·
0 Likes
·
0 Votes
·
0 Comments
·
I understand that - that's exactly what I'm pointing out.

Stripping HTML is fine, but you should replace blocks surrounded in <p> with two newlines, or instances of <br /> with one newline or the formatting is completely wrong.

Just like going in the opposite direction, a nl2br is a good idea, you should be doing the opposite when preparing the text to go to Facebook.

Since this code can't be overridden, I have to suggest that this is a bug.
·
Sunday, 14 June 2020 09:57
·
0 Likes
·
0 Votes
·
0 Comments
·
I am sorry that I think I misunderstood in your initial post, first I thought you mentioned that it should respect the paragraph from the blog content when share to facebook.

I think I got your meaning now, may i know this blog content only contain one text block or multiple https://monosnap.com/file/1eLe2MU5NH2q1q2scAmZpcFyNA2bIi ?

By the way, I will log this issue into issue tracker.
·
Monday, 15 June 2020 13:53
·
0 Likes
·
0 Votes
·
0 Comments
·
The entry was a single text block.
·
Tuesday, 16 June 2020 01:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Alright, got it.
·
Tuesday, 16 June 2020 10:25
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post