Srch.U.getTrimmedString Method (DisplayTemplatesSrch)
Trims the given string based on the given cut off value; adds an ellipsis if required.
Srch.U.getTrimmedString(value, cutOff)
Return value
The truncated result if the given string is longer than the cut off value; otherwise the same string will be returned.
Parameters
value
The string to trim.cutOff
The maximum allowed length, after which the string will be trimmed.