Documentation > CMS Template API Library > Util > ReplaceAttachments(String)
ReplaceAttachments
Finds upload style links in your HTML and replaces them with links appropriate for the current context. This may only be used in an output template.
public System.String ReplaceAttachments(String)
Parameters
Name | Description | Type |
---|---|---|
htmlOrString | The string to be serialized. | System.String |
Code Example
C#
Sample:
String htmlWithLiveLinks = Util.ReplaceAttachments(htmlWithUploadPaths);