A new Siteleaf is here, upgrade to v2 →

Siteleaf

Menu

Strip linebreaks from HTML

Siteleaf v1 Docs » Theme Documentation » Tips and tricks » Strip linebreaks from HTML
{% capture html %}
<html>
...
</html>
{% endcapture %}{{ html | strip_newlines }}