Formatting bug  

  RSS

richards1052
(@richards1052)
Active Member
Joined: 1 year ago
Posts: 12
16/05/2019 8:48 am  

I noticed that a long comment I published completely stripped out all html code when published.  My web host discovered this issue, which I wanted to make you aware of:

It was the setting "The number of words before breaking comment text and showing 'Read more' link" in WPDiscuz, it was set to breaking after 600 words and have a "read more".

Somehow it was removing all tags and not breaking at all, not sure what is wrong with wpdiscuz.


Quote
Topic Tags
Astghik
(@astghik)
Support Team Admin
Joined: 2 years ago
Posts: 2664
16/05/2019 11:44 am  

Hi @richards1052,

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 text. This is a standard content breaking logic.

If we keep HTML tags, e.g. paragraphs, the comment list HTML structure will be damaged and you’ll see totally messed layout. For example, if a comment content is this:

Lorem ipsum dolor sit amet. <p>Falli interesset vel, no has erant fastidii concludaturque, ea cetero.</p>

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

Lorem ipsum dolor sit amet. <p>Falli interesset vel, no has erant fastidii Read More>>

As you see the closing </p> tag doesn’t exist, it’ll affect all HTML structure of your comment list. And this kind of problem will happen with all other HTML tags. The WordPress post excerpt works exactly like wpDiscuz comment excerpt, this is a standard text breaking logic.


ReplyQuote
richards1052
(@richards1052)
Active Member
Joined: 1 year ago
Posts: 12
16/05/2019 7:00 pm  
  • There was no "read more" showing. It was just 1 long  unformatted comment. Looked like an unreadable mess.


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 2 years ago
Posts: 2664
17/05/2019 12:40 pm  

Hi @richards1052,

Please leave some example URL to allow us to check it. 


ReplyQuote
Share: