Notifications
Clear all

Long comments with "Read more" link lose all formatting, and links

3 Posts
2 Users
0 Likes
3,997 Views
(@chazzzzy)
Eminent Member
Joined: 8 years ago
Posts: 22
Topic starter  

If a comment is long and has the "Read more" showing, the comment has no paragraph breaks, and the links disappear and it becomes one non-formatted mess.

Here is an example: https://underground.net/land-of-the-free-trade/#comment-321

When you click "read more" the formatting all returns.

Thanks!

Charles

 


   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 9 years ago
Posts: 4174
 

Hi chazzzzy,

This is a standard content breaking logic. If we keep HTML tags, e.g. paragraphs, the comment list will be damaged and you'll see totally mixed layout. For example. comment content is this:

 Text text text <p>text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text</p>

If you break it and keep formatting HTML, it becomes this:

Text text text <p>text text text text text text text text text text text text text text text text text text text text Read More

As you see the closer </p> tag doesn't exist, it'll affect all HTML structure of your comment list. And now imagine this problem with all other tags... The result will be terrible.

As you may know, WordPress Post excerpt works exactly like wpDiscuz comment excerpt, there is nothing unusual and wrong here. WordPress couldn't solve this issue and they added "More" ( <!--more--> ) tag in Post editor to allow authors indicate the correct place of breaking. This avoids un-closed HTML tag problems.


   
ReplyQuote
(@chazzzzy)
Eminent Member
Joined: 8 years ago
Posts: 22
Topic starter  

Ahh.. I see what you are saying... that makes sense.  OK.. I'll just make the read more not kick in for a lot more characters!

Thanks!

Charles


   
ReplyQuote
Share:
Scroll to top