---
schema_version: "1"
id: d25c9caff1be0a6ad3a080b52e813848c2d19bc2aadc13895f46eefabf0e4253
title: TreatAsContent
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_platformContentTreatAsContent.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformContentTreatAsContent.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 29ba495118a640cb704e9944e71fb59fca3527ef86504f28974af250c363b205
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# TreatAsContent

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.

## Syntax

TreatAsContent(1)

## Function Properties

| Ordinal | Type   |              | Description      |
| ------- | ------ | ------------ | ---------------- |
| **1**   | string | **Required** | Provided content |

## Example

```
<script runat="server">
     var content = Platform.Function.TreatAsContent("stringContent");
</script>
```
