NOP 4.2 - HTML minify issue

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 năm cách đây
If you minify the HTML you will find that the <p> tags have been stripped out and there are no spaces between the paragraphs, the rich editor of NOP creates these tags for spaces.

<p style="text-align: left;"> </p>
3 năm cách đây
It's not about the "HTML minification" setting available on the general page. You're talking only about the rich editor. Please confirm
3 năm cách đây
The Rich Editor places <p> tags for spaces and if you tick the box in admin to minify the HTML it removes these spaces.
3 năm cách đây
Any feedback on this one please.
3 năm cách đây
Hi Paul,

Thanks. We'll check it in the near time. Here is a work item - https://github.com/nopSolutions/nopCommerce/issues/4872
3 năm cách đây
Thanks, as a fix would it be best to apply CSS to all header tabs to leave a margin above so that when the Paragraph tags are removed the spaces are still there?
3 năm cách đây
We fixed this problem, please see the work item for more details.
3 năm cách đây
Looks like there is another bug with HTML minification.
It turns out that if you have HTML minification turned on it strips out https from from URLs that may exist with the context of the HTML.

An example where this causes a problem is when using the PayPal Smart Buttons plugin.
The HTML minification  converts "https://www.paypal.com/sdk/js"  to "//www.paypal.com/sdk/js", which makes the plugin unusable.  The only way to get it to work is to turn off HTML minification.

Anything else that requires "https" within the HTML content to function properly will not work if HTML minification is turned on.
3 năm cách đây
Sizzler wrote:
Looks like there is another bug with HTML minification.
It turns out that if you have HTML minification turned on it strips out https from from URLs that may exist with the context of the HTML.

An example where this causes a problem is when using the PayPal Smart Buttons plugin.
The HTML minification  converts "https://www.paypal.com/sdk/js"  to "//www.paypal.com/sdk/js", which makes the plugin unusable.  The only way to get it to work is to turn off HTML minification.

Anything else that requires "https" within the HTML content to function properly will not work if HTML minification is turned on.


This has been fixed here.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.