# StripHtml

| **Name**    | ***StripHtml***                                                                                                                                                   |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Syntax      | StripHtml (String htmlText)                                                                                                                                       |
| Purpose     | To strip a string’s HTML tags and return text.                                                                                                                    |
| Description | Strips out HTML tags and returns text in the string.                                                                                                              |
| Return Type | String                                                                                                                                                            |
| Parameters  | <p>htmlText \[System.String] – HTML text that is to be stripped</p><p>decode \[System.Boolean] – whether to decode the resulting HTML string. Default is true</p> |

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FL2sXbX1ZF4fRkyVBUsAU%2F0.png?alt=media)

**Example**

In this example, we are passing the required parameters to the function transformation object using a *Variables* object.

Where,

*htmlText*: \<p>Hello World.\</p> \<p>This is a test.\</p>

*decode =* True

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F91ECx71XUdVuUw4TP112%2F1.png?alt=media)

Right-click on the function transformation object and select *Preview Output.* You can see that Astera Data Stack has returned a string values, stripped of HTML tags.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FGIH3IRMPFhf2HN89LUma%2F2.png?alt=media)
