Skip to main content

lines

Function lines 

Source
pub fn lines(value: &Value) -> Result<Value, Error>
Expand description

Splits a string into lines.

The newline character is removed in the process and not retained. This function supports both Windows and UNIX style newlines.

{{ "foo\nbar\nbaz"|lines }}
    -> ["foo", "bar", "baz"]