class Liquid::Filters::StripNewLines

Overview

strip_newlines

Removes any newline characters (line breaks) from a string.

Input {% capture string_with_newlines %} Hello there {% endcapture %}

{{ string_with_newlines | strip_newlines }}

Output Hellothere

Extended Modules

Defined in:

liquid/filters/strip_newlines.cr

Class Method Summary

Class Method Detail

def self.filter(data : Any, args : Array(Any) | Nil = nil) : Any #

[View source]