Normalization functions
Reference documentation for Expressif functions in the text/normalization scope.
| Name | Overview |
|---|---|
clean-whitespace | returns the argument with any whitespace replaced by a space character. \r\n is considered as a single character. |
collapse-whitespace | returns the argument with any two or more consecutive whitespaces replaced by the first whitespace in the sequence and trimming the result. \r\n is considered as a single character. |
empty-to-null | Returns the argument value except if this value is empty then it returns null. |
null-to-empty | Returns the argument value except if this value is null then it returns empty. |
slug | Returns a lowercase, separator-normalized slug, removing Latin diacritics without transliterating non-Latin scripts. Returns empty text when the input is null, empty, or blank. |
trim | Returns the argument value without all leading or trailing white-space characters. |
whitespaces-to-empty | Returns the argument value except if this value only contains white-space characters then it returns empty. |
whitespaces-to-null | Returns the argument value except if this value only contains white-space characters then it returns null. |
without-diacritics | Returns the argument string without diacritics. |
without-whitespaces | Returns the argument string without white-space characters. |