<?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 Get text from html element in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Get-text-from-html-element/m-p/102129#M48935</link>
    <description>Hi All,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have a data item with both html and text that I read in from the Body of an email on a CRM system (Genesys). I need to remove the html and leave just text. Can this be done?&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Gary</description>
    <pubDate>Wed, 07 Sep 2022 14:48:44 GMT</pubDate>
    <dc:creator>GaryMannion</dc:creator>
    <dc:date>2022-09-07T14:48:44Z</dc:date>
    <item>
      <title>Get text from html element</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-text-from-html-element/m-p/102129#M48935</link>
      <description>Hi All,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have a data item with both html and text that I read in from the Body of an email on a CRM system (Genesys). I need to remove the html and leave just text. Can this be done?&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Gary</description>
      <pubDate>Wed, 07 Sep 2022 14:48:44 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-text-from-html-element/m-p/102129#M48935</guid>
      <dc:creator>GaryMannion</dc:creator>
      <dc:date>2022-09-07T14:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get text from html element</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-text-from-html-element/m-p/102130#M48936</link>
      <description>Hi Gary&lt;BR /&gt;&lt;BR /&gt;Without the benefit of an example of your email text, I'd probably do the following:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;First find the end position of the HTML start-tag for the text you want to extract from your data item using the InStr() function.&lt;/LI&gt;
&lt;LI&gt;Then you determine the start position of the HTML end-tag for the text, again with the InStr() function.&lt;/LI&gt;
&lt;LI&gt;Finally you use the Mid() function to extract the text between the found positions&lt;/LI&gt;
&lt;/UL&gt;
&lt;BR /&gt;Happy coding!&lt;BR /&gt;---------------&lt;BR /&gt;Paul&lt;BR /&gt;Sweden</description>
      <pubDate>Thu, 08 Sep 2022 08:27:50 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-text-from-html-element/m-p/102130#M48936</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2022-09-08T08:27:50Z</dc:date>
    </item>
  </channel>
</rss>

