Files
hugo/content/functions/trim.md
T

382 B

title, linktitle, description, godocref, date, publishdate, lastmod, categories, tags, signature, workson, hugoversion, relatedfuncs, deprecated
title linktitle description godocref date publishdate lastmod categories tags signature workson hugoversion relatedfuncs deprecated
trim 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"