syntax:functions:sanitize
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
syntax:functions:sanitize [2018/08/15 08:35] – dmitry | syntax:functions:sanitize [2021/08/14 22:29] (current) – [Examples] craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Sanitize(text) ===== | + | ====== Sanitize(text) ====== |
+ | Category: | ||
- | Replaces | + | \\ |
+ | =====Description===== | ||
+ | This function replaces | ||
+ | |||
+ | \\ | ||
+ | =====Use cases==== | ||
+ | This function can be used to remove unexpected unseen characters from text. | ||
+ | |||
+ | \\ | ||
+ | =====Arguments===== | ||
+ | ^Argument^Type^Description^ | ||
+ | |text|Text|The text string to clean of non-printing characters (tabs line feeds, etc.).| | ||
+ | |||
+ | **Return value type:** Text | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | This example shows the effects of // | ||
+ | |||
+ | First, check the length of a string, including a tab character: | ||
+ | len(' | ||
+ | |||
+ | The sanitized result is the same length, but the tab character has been converted to a trailing space: | ||
+ | len(sanitize(' | ||
+ | sanitize(' |
syntax/functions/sanitize.1534336515.txt.gz · Last modified: 2018/08/15 08:35 by dmitry