Click or drag to resize
TextHelperEnsureMaximumLineLength Method
Limits the line length of given plain text.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static string EnsureMaximumLineLength(
	string text,
	int maxLength,
	string separation = "<span></span>",
	bool encode = false
)

Parameters

text
Type: SystemString
Text to process
maxLength
Type: SystemInt32
Max line length
separation (Optional)
Type: SystemString
String which will be used as line separator
encode (Optional)
Type: SystemBoolean
If true, original string will be encoded (all the separators remain un-encoded)

Return Value

Type: String
See Also