다음을 통해 공유


Srch.U.truncateUrl Method (DisplayTemplatesSrch)

Truncates the given URL. The URL should not be encoded.

Srch.U.truncateUrl(url, maxChars)

Return value

The truncated, un-encoded URL.

Parameters

  • url
    The URL to truncate.

  • maxChars
    The number of characters after which the URL should be truncated.