# Replace Activity Help

**URL:** <https://forum.uipath.com/t/replace-activity-help/651486>\
**Category:** Activities\
**Tags:** question, system, activities\
**Created:** [October 20, 2023, 8:30am UTC](https://forum.uipath.com/t/replace-activity-help/651486 "2023-10-20T08:30:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emmanuel\_Mutua](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/emmanuel_mutua/32/434333_2.png) [@Emmanuel\_Mutua](https://forum.uipath.com/u/Emmanuel_Mutua)\
**Post date:** [October 20, 2023, 8:30am UTC](https://forum.uipath.com/t/replace-activity-help/651486/1 "2023-10-20T08:30:31Z")

</div>

I am trying to find the replace activity to convert the email body in HTML format to plain text in UiPath but cannot see it. The only activity I can see is the Replace Matching patterns

---

<div class="post-metadata">

**Author:** ![supermanPunch](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/supermanpunch/32/133652_2.png) [@supermanPunch](https://forum.uipath.com/u/supermanPunch)\
**Post date:** [October 20, 2023, 8:39am UTC](https://forum.uipath.com/t/replace-activity-help/651486/2 "2023-10-20T08:39:15Z")

</div>

Hi @Emmanuel_Mutua ,

I believe it is called as `Extract Text` activity ?

 ![image](https://global.discourse-cdn.com/uipath/original/4X/d/7/b/d7b50e27263c7c00b3bd6054dd353606c7aa4103.png)

> [@UiPath Community 2023.10 Release - Studio & StudioX](https://forum.uipath.com/t/uipath-community-2023-10-release-studio-studiox/626518#extract-text-12):
>
> [Studio & StudioX](https://forum.uipath.com/t/studio-studiox/626518) This topic goes in-depth about the improvements in Studio & StudioX. To read about other products, please navigate to the main topic [here](https://forum.uipath.com/t/uipath-community-2023-10-release-recap/626501). Autogenerated variables for Windows projects It is now possible to consume activity outputs without manually creating variables on Windows projects on both Studio and StudioX. The functionality had been introduced on the 2023.4 release on Cross Platform projects and it’s now available on the Windows framework. Autogenerated variables shoul…

---

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [October 20, 2023, 8:40am UTC](https://forum.uipath.com/t/replace-activity-help/651486/3 "2023-10-20T08:40:01Z")

</div>

When the email itself is still available as e.g. MailMessage had you tried to retrieve plain text directly from it. In general we should have the option also to get the PlainText along the HTML Body

---

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [October 20, 2023, 8:52am UTC](https://forum.uipath.com/t/replace-activity-help/651486/4 "2023-10-20T08:52:27Z")

</div>

About the Extract Text Activity keep in mind that there is still the glue together bug / risk)  
HTML:  
 ![grafik](https://global.discourse-cdn.com/uipath/original/4X/8/e/e/8ee1e8d6274cd8d4e4092d323c23c00bbb8e9970.png)

![grafik](https://global.discourse-cdn.com/uipath/original/4X/4/0/e/40e8a38a801954893d4db5460e53e88136a969a4.png)

A code like:

```auto
"<p>val#1<ul><li>val#2</li><li>val#3</li></ul></p>"

```

will result to  
 ![grafik](https://global.discourse-cdn.com/uipath/original/4X/9/5/2/952c2f3c35e39229478ffe908bb27b3fbd5684a0.png)

---

<div class="post-metadata">

**Author:** ![copy\_writes](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/copy_writes/32/183191_2.png) [@copy\_writes](https://forum.uipath.com/u/copy_writes)\
**Post date:** [October 20, 2023, 9:10am UTC](https://forum.uipath.com/t/replace-activity-help/651486/5 "2023-10-20T09:10:43Z")

</div>

Why You are using replace

Enable the option:  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/f/f/f/fff0e2d5f32cee370ecbf86b27b80e5fa46480c2.png)

If you want to write the HTML code use the below website:

> **[HTML Online Editor](https://www.w3schools.com/Html/html_editor.asp)**
>
> W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

---

<div class="post-metadata">

**Author:** ![Emmanuel\_Mutua](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/emmanuel_mutua/32/434333_2.png) [@Emmanuel\_Mutua](https://forum.uipath.com/u/Emmanuel_Mutua)\
**Post date:** [October 21, 2023, 1:43am UTC](https://forum.uipath.com/t/replace-activity-help/651486/6 "2023-10-21T01:43:18Z")

</div>

Awesome, now how do I display the extracted text

---

<div class="post-metadata">

**Author:** ![Emmanuel\_Mutua](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/emmanuel_mutua/32/434333_2.png) [@Emmanuel\_Mutua](https://forum.uipath.com/u/Emmanuel_Mutua)\
**Post date:** [October 21, 2023, 1:44am UTC](https://forum.uipath.com/t/replace-activity-help/651486/7 "2023-10-21T01:44:33Z")

</div>

Awesome, now how do I display the extracted text?

---

<div class="post-metadata">

**Author:** ![Emmanuel\_Mutua](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/emmanuel_mutua/32/434333_2.png) [@Emmanuel\_Mutua](https://forum.uipath.com/u/Emmanuel_Mutua)\
**Post date:** [October 21, 2023, 1:54am UTC](https://forum.uipath.com/t/replace-activity-help/651486/8 "2023-10-21T01:54:32Z")

</div>

Regex.Replace(CurrentMail.Body,“\<[^\>]\*\>” ,“”)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [October 24, 2023, 1:54am UTC](https://forum.uipath.com/t/replace-activity-help/651486/9 "2023-10-24T01:54:43Z")

</div>

Closed on October 24, 2023, 1:54am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
