<?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 Re: Convert HTML value into Text in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/Convert-HTML-value-into-Text/m-p/2026115#M1248</link>
    <description>&lt;P&gt;Hi Shai and AfeefaTK,&lt;/P&gt;
&lt;P&gt;Regex was exactly wthat I'm looking for. Thanks for the fast support!&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jan 2023 11:28:28 GMT</pubDate>
    <dc:creator>MartijnWanders</dc:creator>
    <dc:date>2023-01-16T11:28:28Z</dc:date>
    <item>
      <title>Convert HTML value into Text</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Convert-HTML-value-into-Text/m-p/2025796#M1244</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have to extract data from a cloud source and I'm using Application Automation to sent it to Snowflake. Now I'm getting the value in HTML format. This data is not going into a Qlik dashboard but a in datamart view created in Qlik Compose. Snowflake is the datawarehouse but it seems that Snowflake can not convert the data.&lt;/P&gt;
&lt;P&gt;Is there a block or function to convert the HTML value in normal text? I want to avoid a complex expression that purge characters etc.&lt;/P&gt;
&lt;P&gt;Example (I cut off text to make the string shorter and less reconizable. I can not share the full string):&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"value": "&amp;lt;p&amp;gt;&amp;lt;span lang=\"NL\"&amp;gt;Het Claen zijn: &amp;lt;\/span&amp;gt;FileMaerver.&amp;lt;\/p&amp;gt; &amp;lt;h3&amp;gt;Clro&amp;lt;\/h3&amp;gt; &amp;lt;p&amp;gt;Met Clarog:&amp;lt;\/p&amp;gt; &amp;lt;ul&amp;gt; &amp;lt;li&amp;gt;laytten&amp;lt;\/li&amp;gt; &amp;lt;li&amp;gt;ingeken&amp;lt;\/li&amp;gt; &amp;lt;li&amp;gt;&amp;lt;\/p&amp;gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2023 10:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Convert-HTML-value-into-Text/m-p/2025796#M1244</guid>
      <dc:creator>MartijnWanders</dc:creator>
      <dc:date>2023-01-14T10:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Convert HTML value into Text</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Convert-HTML-value-into-Text/m-p/2025868#M1245</link>
      <description>&lt;P&gt;Hi Martijn,&lt;/P&gt;
&lt;P&gt;I assume you need the raw text without the html tags?&lt;/P&gt;
&lt;P&gt;If that is the case, there is a regex expression which is not too complicated which strips all of the html tags and leaves only the text behind.&lt;/P&gt;
&lt;P&gt;Code in javascript to be used in a "Custom Code" block inside an automation:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;// Example code
let html = "&amp;lt;p&amp;gt;&amp;lt;span lang=\"NL\"&amp;gt;Het Claen zijn: &amp;lt;\/span&amp;gt;FileMaerver.&amp;lt;\/p&amp;gt; &amp;lt;h3&amp;gt;Clro&amp;lt;\/h3&amp;gt; &amp;lt;p&amp;gt;Met Clarog:&amp;lt;\/p&amp;gt; &amp;lt;ul&amp;gt; &amp;lt;li&amp;gt;laytten&amp;lt;\/li&amp;gt; &amp;lt;li&amp;gt;ingeken&amp;lt;\/li&amp;gt; &amp;lt;li&amp;gt;&amp;lt;\/p&amp;gt;"


console.log(html.replace(/(&amp;lt;([^&amp;gt;]+)&amp;gt;)/ig, ""))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2023 14:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Convert-HTML-value-into-Text/m-p/2025868#M1245</guid>
      <dc:creator>Shai_E</dc:creator>
      <dc:date>2023-01-15T14:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert HTML value into Text</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Convert-HTML-value-into-Text/m-p/2025957#M1246</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/137484"&gt;@MartijnWanders&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the 'regex replace' formula to replace HTML tags based on regular expression&lt;/P&gt;
&lt;P&gt;For more details on how to use the formula refer:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_QlikAutomation/working-with-automations/working-with-formulas.htm" target="_blank"&gt;https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_QlikAutomation/working-with-automations/working-with-formulas.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I have created an example automation for your reference&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 06:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Convert-HTML-value-into-Text/m-p/2025957#M1246</guid>
      <dc:creator>AfeefaTk</dc:creator>
      <dc:date>2023-01-16T06:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Convert HTML value into Text</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Convert-HTML-value-into-Text/m-p/2026008#M1247</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/137484"&gt;@MartijnWanders&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Afeefas way is cleaner, since you only need to use the regex in the formula, with the string value.&lt;/P&gt;
&lt;P&gt;I forgot about the replace formula.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 08:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Convert-HTML-value-into-Text/m-p/2026008#M1247</guid>
      <dc:creator>Shai_E</dc:creator>
      <dc:date>2023-01-16T08:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Convert HTML value into Text</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Convert-HTML-value-into-Text/m-p/2026115#M1248</link>
      <description>&lt;P&gt;Hi Shai and AfeefaTK,&lt;/P&gt;
&lt;P&gt;Regex was exactly wthat I'm looking for. Thanks for the fast support!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 11:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Convert-HTML-value-into-Text/m-p/2026115#M1248</guid>
      <dc:creator>MartijnWanders</dc:creator>
      <dc:date>2023-01-16T11:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Convert HTML value into Text</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Convert-HTML-value-into-Text/m-p/2044161#M1414</link>
      <description>&lt;P&gt;Hi AfeefaTK,&lt;/P&gt;
&lt;P&gt;I have question about the REGEX function. In Snowflake you have also the REGEXP_REPLACE function. But there your&amp;nbsp;/&amp;lt;[^&amp;gt;]*&amp;gt;)/ doesn't work. On this page I can find more information:&amp;nbsp;&lt;A href="https://docs.snowflake.com/en/sql-reference/functions/regexp" target="_blank"&gt;https://docs.snowflake.com/en/sql-reference/functions/regexp&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Do they use another pattern? I don't understand how this works. Can you help me a bit? Will really appriciate this.&lt;/P&gt;
&lt;P&gt;My expression in SF:&lt;/P&gt;
&lt;P&gt;REGEXP_replace(T3.ATTRIBUTE_VALUE,'/&amp;lt;[^&amp;gt;]*&amp;gt;)/','') AS PRODUCT_VARIANT_DESCRIPTION,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 23:05:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Convert-HTML-value-into-Text/m-p/2044161#M1414</guid>
      <dc:creator>MartijnWanders</dc:creator>
      <dc:date>2023-03-01T23:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Convert HTML value into Text</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Convert-HTML-value-into-Text/m-p/2044193#M1415</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/137484"&gt;@MartijnWanders&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I am not that expert in snowflake&lt;/P&gt;
&lt;P&gt;Could you please ask this question in the snowflake community&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.snowflake.com/s/article/How-to-use-snowflake-regular-expression" target="_blank"&gt;https://community.snowflake.com/s/article/How-to-use-snowflake-regular-expression&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 03:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Convert-HTML-value-into-Text/m-p/2044193#M1415</guid>
      <dc:creator>AfeefaTk</dc:creator>
      <dc:date>2023-03-02T03:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Convert HTML value into Text</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Convert-HTML-value-into-Text/m-p/2044256#M1417</link>
      <description>&lt;P&gt;Hi AfeefaTK,&lt;/P&gt;
&lt;P&gt;Ok no problem. Thank your for replying!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 06:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Convert-HTML-value-into-Text/m-p/2044256#M1417</guid>
      <dc:creator>MartijnWanders</dc:creator>
      <dc:date>2023-03-02T06:53:09Z</dc:date>
    </item>
  </channel>
</rss>

