<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Remove HTML tags from mail body in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Remove-HTML-tags-from-mail-body/m-p/102429#M49157</link>
    <description>&lt;SPAN&gt;Hi,&lt;BR /&gt;I need to be able to remove the HTML tags from the main body of an email. I just need the content as a text.&lt;BR /&gt;Anyone knows how to do this?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/SPAN&gt;</description>
    <pubDate>Tue, 19 Apr 2022 19:21:05 GMT</pubDate>
    <dc:creator>EvangelinaCurró</dc:creator>
    <dc:date>2022-04-19T19:21:05Z</dc:date>
    <item>
      <title>Remove HTML tags from mail body</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-HTML-tags-from-mail-body/m-p/102429#M49157</link>
      <description>&lt;SPAN&gt;Hi,&lt;BR /&gt;I need to be able to remove the HTML tags from the main body of an email. I just need the content as a text.&lt;BR /&gt;Anyone knows how to do this?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/SPAN&gt;</description>
      <pubDate>Tue, 19 Apr 2022 19:21:05 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-HTML-tags-from-mail-body/m-p/102429#M49157</guid>
      <dc:creator>EvangelinaCurró</dc:creator>
      <dc:date>2022-04-19T19:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Remove HTML tags from mail body</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-HTML-tags-from-mail-body/m-p/102430#M49158</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="f9cf50a0-ff05-47f1-8966-282cb9111cb2" data-tag-text="@Evangelina Curró" href="https://community.blueprism.com/network/profile?UserKey=f9cf50a0-ff05-47f1-8966-282cb9111cb2" data-itemmentionkey="8f1a251e-bb24-4377-8c83-9a3a0db1937a"&gt;@Evangelina Curró&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;You could accomplish something like this using RegEx (Regular Expressions). You could use an expression similar to below to replace HTML tags with an empty string. You'd have to do this via a Code stage.&lt;BR /&gt;​
&lt;PRE class="language-csharp"&gt;&lt;CODE&gt;output = Regex.Replace(input, "&amp;lt;[a-zA-Z/].*?&amp;gt;", String.Empty);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline"&gt;&lt;STRONG&gt;Example set up of a Code stage&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37045.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/37062i4B07EF9FF6BD34D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="37045.png" alt="37045.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37046.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/37060i544B141A7AD67474/image-size/large?v=v2&amp;amp;px=999" role="button" title="37046.png" alt="37046.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37047.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/37055iD5DFFAD218D4E84F/image-size/large?v=v2&amp;amp;px=999" role="button" title="37047.png" alt="37047.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 20:24:27 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-HTML-tags-from-mail-body/m-p/102430#M49158</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-04-19T20:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Remove HTML tags from mail body</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-HTML-tags-from-mail-body/m-p/102431#M49159</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="f9cf50a0-ff05-47f1-8966-282cb9111cb2" data-tag-text="@Evangelina Curró" href="https://community.blueprism.com/network/profile?UserKey=f9cf50a0-ff05-47f1-8966-282cb9111cb2" data-itemmentionkey="c6c04152-ca09-490d-9a6f-deef89d555c2"&gt;@Evangelina Curró&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You could use the "Regex Replace" action in the BP "Utility - Strings" VBO. The pattern I would use for it is "&amp;lt;[^&amp;gt;]*?&amp;gt;".&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37048.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/37057iF4F422404E7475BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="37048.png" alt="37048.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;​</description>
      <pubDate>Tue, 19 Apr 2022 21:03:45 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-HTML-tags-from-mail-body/m-p/102431#M49159</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2022-04-19T21:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Remove HTML tags from mail body</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-HTML-tags-from-mail-body/m-p/102432#M49160</link>
      <description>It Works! Thank you so much!! &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt; &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/548"&gt;@MichealCharron&lt;/a&gt;&amp;nbsp; ​​</description>
      <pubDate>Thu, 21 Apr 2022 19:16:36 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-HTML-tags-from-mail-body/m-p/102432#M49160</guid>
      <dc:creator>EvangelinaCurró</dc:creator>
      <dc:date>2022-04-21T19:16:36Z</dc:date>
    </item>
  </channel>
</rss>

