URLShortenerHelperShortenURLsInTextInternal Method |
Shortens all URLs in provided text.
Returns the same text with all URLs shortened by the specified shortener.
If shortener is URLShortenerTypeEnum.None, original inputText is returned.
Namespace: CMS.SocialMarketingAssembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 13.0.131
Syntax protected virtual string ShortenURLsInTextInternal(
string inputText,
URLShortenerTypeEnum shortener,
SiteInfoIdentifier siteIdentifier
)
Parameters
- inputText
- Type: SystemString
Input text - shortener
- Type: CMS.SocialMarketingURLShortenerTypeEnum
Shortener of your choice - siteIdentifier
- Type: CMS.DataEngineSiteInfoIdentifier
Site name used to get URLShortener settings, since they are site-specific.
Return Value
Type:
StringSee Also