sanitizePreviewText

internal fun sanitizePreviewText(input: String?, maxLength: Int, collapseWhitespace: Boolean = true): String?