hugo/docs/content/en/functions/strings/Trim.md
2024-11-13 11:07:57 +01:00

548 B

title description categories keywords action aliases
strings.Trim Returns the given string, removing leading and trailing characters specified in the cutset.
aliases related returnType signatures
trim
functions/strings/Chomp
functions/strings/TrimSpace
functions/strings/TrimLeft
functions/strings/TrimPrefix
functions/strings/TrimRight
functions/strings/TrimSuffix
string
strings.Trim INPUT CUTSET
/functions/trim
{{ trim "++foo--" "+-" }} → foo