다음을 통해 공유


Srch.U.truncateHighlightedUrl Method (DisplayTemplatesSrch)

Truncates the highlighted URL. The URL should be encoded.

Srch.U.truncateHighlightedUrl(url, maxChars)

Return value

The truncated URL.

Parameters

  • url
    The URL to truncate.

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