---
title: "plainText"
canonical: "https://support.appfire.com/space/PSCONF/1461026865/plainText"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | plainText(html/xml) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Routine strips all HTML/XML markup from a passed string and returns a clean, plain-text version.

Routine strips all HTML/XML markup from a passed string and returns a clean, plain-text version.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | html/xml | String | Yes | The text itself, which may contain HTML or XML markup. |

## Return Type

**String**

## Example

```javascript
string html = "<p>Some text</p>";
string plain = plainText(html);
print(plain);
```

## See also

> Macro (contentbylabel)