Files
hugo/content/functions/trim.md
T
2017-03-18 15:42:41 -05:00

485 B

title, linktitle, description, godocref, date, publishdate, lastmod, categories, tags, ns, signature, workson, hugoversion, relatedfuncs, deprecated
title linktitle description godocref date publishdate lastmod categories tags ns signature workson hugoversion relatedfuncs deprecated
trim Returns a slice of a passed string with all leading and trailing characters from cutset removed. 2017-02-01 2017-02-01 2017-02-01
functions
strings
false

trim returns a slice of the string with all leading and trailing characters contained in cutset removed.

{{ trim "++Batman--" "+-" }} → "Batman"