Documentation > CMS Template API Library > Util > ReplaceCptInternals(String,Boolean,ProtocolType)

ReplaceCptInternals

Finds cpt_internal style links in your HTML and replaces them with links appropriate for the current context.

public System.String ReplaceCptInternals(String,Boolean,ProtocolType)


Returns

The transformed html output.

Parameters

NameDescriptionType
html The html content. System.String
addDomain Optional: If true add HostName for current publishing package to link. Defaults to false. Must be in OutputContext (output template or filename or url template) and publishing. No effect in Preview. Defaults to false. System.Boolean
protocolType Optional: If addDomain is true, determines if the protocol should be added and whether to use http or https. No effect in Preview.indexer. Defaults to http. CrownPeak.CMSAPI.ProtocolType

Connect with Crownpeak