AMPscript
BeginImpressionRegion
ContentArea
ContentAreaByName
ContentBlockById
ContentBlockByKey
ContentBlockByName
ContentImagebyID
ContentImagebyKey
EndImpressionRegion
TreatAsContent
Validate Your Server-Side JavaScript using WSProxy
Takes a supplied string value and treat it as a content area. This function renders all included dynamic content, scripts, and personalization strings. Use the HTTPGETWRAP command to wrap links for tracking and analytics within this function.
TreatAsContent(1)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Provided content |
1<script runat="server">
2 var content = Platform.Function.TreatAsContent("stringContent");
3</script>