AI Assistant
Notifications
Clear all

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

3 Posts
2 Users
0 Reactions
4,617 Views
(@chazzzzy)
Eminent Member
Joined: 10 years ago
Posts: 22
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#544]

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: 11 years ago
Posts: 4245
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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: 10 years ago
Posts: 22
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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