Wordpress max line / character issue

Wilcoo1

Regular Member
Joined
Oct 21, 2019
Messages
317
Reaction score
381
Hi Guys,

I'm actually hoping to find an answer asap so I can continue with my work.

I'm showing a bunch of data through DataTables in the product short description

My json > html program writes it like this
<tr><td>XX</td><td>201</td><td>80</td><td>YY</td><td>CC</td></tr>

But when I click on update product, the product short description changes it to this
<tr>
<td>XX</td>
<td>201</td>
<td>80</td>
<td>YY</td>
<td>CC</td>
</tr>

Because of this, something that was 892 lines now becomes about.. 6.2k lines. and it cuts everything out after like 4.2k lines.

I have tables that need to reach up to 3.5k normal lines.

Am I passing the max characters? max lines? If so, kindly link me to an similair issue with a fix. Searched for quite a while and I simply can't find it.

Flatsome Theme btw
 
Am I passing the max characters? max lines?
There's no limit of characters or lines. Theme has a bug or probably is not escaping something correctly. Also, what you have there is not JSON, but HTML code, and probably this is the issue.
 
There's no limit of characters or lines. Theme has a bug or probably is not escaping something correctly. Also, what you have there is not JSON, but HTML code, and probably this is the issue.

I know the difference between Json and Html, I meant that my py script converts the json to html.

I’ve tested it on multiple themes and it doesn’t work on either. Really feels like a character limit.
 
DataTables don't have limit. The only limit is RAM that can crash the browser, or server side, that will throw a 504 Gateway timeout error.
Code:
https://datatables.net/extensions/scroller/examples/initialisation/large_js_source.html
Modify the code so it doesn't make the new lines.
 
DataTables don't have limit. The only limit is RAM that can crash the browser, or server side, that will throw a 504 Gateway timeout error.
Code:
https://datatables.net/extensions/scroller/examples/initialisation/large_js_source.html
Modify the code so it doesn't make the new lines.

DataTables isn't the cause of this issue, its the part in the product description that causes errors.

It literally cuts out lines when clicking on update.

The 'somewhat' fix I found was doing it in long description, a bit more ugly but I guess I'll have to live with it.
 
Last edited:
Back
Top