TextHelperEnsureMaximumLineLength Method |
Limits the line length of given plain text.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax 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:
StringSee Also