API Reference util.format Class Defined in lib/util/format.js:1 Description String format utilities. Methods stripHtml (content) String static Defined in lib/util/format.js:12 Removes all HTML tags. Parameters content String Returns String titlecase (str) String static Defined in lib/util/format.js:38 See util.inflector/titleize. Parameters str String Returns String trim (content) String static Defined in lib/util/format.js:25 Removes whitespace from both ends of the string. Parameters content String Returns String truncate (text, [options]) String static Defined in lib/util/format.js:71 Truncates the given text. Parameters text String options Object optional Returns String word_wrap (text, width) String static Defined in lib/util/format.js:49 Wraps the text into lines no longer than width. Parameters text String width Number Returns String