Compress html javascript file format.js

In the usual development process, you will find that no matter how the block elements in the superior html are styled, there will always be spaces between them, which will cause the layout of the web page to become messy.

The solution is to compress the corresponding html code and use format.js to target the content of the rich text editor.

method:

var htmlPacker = new Packer;
var oldContent = $("xxx").html();
var newContent = htmlPacker.pack(oldContent, 0, 0);

, The format.js source code is as follows to download:

https://www.i847.cn/article/29.html

Guess you like

Origin blog.csdn.net/m0_37755308/article/details/105082750