Skip to main content

spacify

in Default Modifiers
Authors list
Published: Aug 7, 2024|Last updated: Oct 11, 2024

Spacify is a way to insert a space between every character of a variable. You can optionally pass a different character or string to insert.

Note


spacify

{{$text|spacify}}

ArgumentsCopy link to Arguments to clipboard

Argument

Description

1

The character to be added between each character in the target text, a space by default.

ExamplesCopy link to Examples to clipboard

Example


upper

{{"Today"|spacify}} T o d a y {{"Today"|spacify:"-"}} T-o-d-a-y {{"12345"|spacify:":"}} 1:2:3:4:5
copy
next pagestrstr
previous pagereplace

Please log in or register to submit a comment.