Collapse Whitespace Modifier#
Trims a string and replaces consecutive whitespace characters with
a single space. This includes tabs and newline characters, as well as
multibyte whitespace such as the thin space and ideographic space.
title: Bad at typingyamlyaml
{{ title | collapse_whitespace }}antlersantlers
Bad at typinghtmlhtml
Docs Feedback
Submit improvements, related content, or suggestions through Github.
Betterify this page