amandasaffer
9/18/2016 - 9:11 PM

Simple HTML minify with Liquid/Siteleaf. Strips all line breaks, tabs, and extra spaces.

Simple HTML minify with Liquid/Siteleaf. Strips all line breaks, tabs, and extra spaces.

{% capture html %}
<html>
 ...
</html>
{% endcapture %}{{ html | strip_newlines | replace:'	','' | replace:'    ','' | replace:'  ',' ' }}