<?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: Remove HTML code from email message field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Remove-HTML-code-from-email-message-field/m-p/1553294#M598516</link>
    <description>&lt;P&gt;QlikVIew allows you to create script functions in the Module (Ctrl-m), Qlik Sense does not.&amp;nbsp; To create additional functions in Qlik Sense script, you have to use a connector or use a server side extension. Both require some setup.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2019 04:55:24 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2019-03-07T04:55:24Z</dc:date>
    <item>
      <title>Remove HTML code from email message field</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-HTML-code-from-email-message-field/m-p/1548063#M598510</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I need to remove html code as well some styling attributes from the email message coming from web connector. I need to do this within Qlik Sense scripting:&lt;BR /&gt;I am using suggestions from the below blog posts:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Removing-HTML-markup-code/td-p/466050/highlight/false" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Development/Removing-HTML-markup-code/td-p/466050/highlight/false&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am wondering what I am doing wrong.&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD RecNo() as RecNo,&lt;BR /&gt;HTML_description&lt;/P&gt;&lt;P&gt;FROM [$(vPath)RawData\xyz.qvd] (qvd);&lt;/P&gt;&lt;P&gt;HtmlTag_Map:&lt;/P&gt;&lt;P&gt;MAPPING LOAD DISTINCT '&amp;lt;' &amp;amp; TextBetween('&amp;lt;' &amp;amp; SubField(HTML_description, '&amp;lt;'),'&amp;lt;','&amp;gt;') &amp;amp; '&amp;gt;' as HtmlTag, '' as Substitute&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;Left JOIN(Data) LOAD RecNo,HTML_description, MapSubstring('HtmlTag_Map', HTML_description) as Field_Cleansed&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;Exit Script;&lt;/P&gt;&lt;P&gt;I am also trying&amp;nbsp; similar code suggested here, but this is working as expected but it will be taking hours to load thousands of rows:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Deployment/strip-HTML-codes-from-a-field-during-load-script/m-p/1524938/highlight/false#M47615" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Deployment/strip-HTML-codes-from-a-field-during-load-script/m-p/1524938/highlight/false#M47615&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;==================&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;LOAD RecNo() as RecNo,&lt;BR /&gt;HTML_description&lt;/P&gt;&lt;P&gt;FROM [$(vPath)RawData\xyz.qvd] (qvd);&lt;/P&gt;&lt;P&gt;For vRow = 1 to NoOfRows('tab1')&lt;BR /&gt;Let vID = Peek('RecNo',vRow-1,'tab1');&lt;BR /&gt;Let vtext = Peek('HTML_description',vRow-1,'tab1');&lt;/P&gt;&lt;P&gt;do while len(TextBetween(vtext, '&amp;lt;', '&amp;gt;'))&amp;gt;0vtext=Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(vtext, TextBetween(vtext, '&amp;lt;', '&amp;gt;'), ''), '&amp;lt;&amp;gt;', ''),TextBetween(vtext, '{', '}'),''),'{}',''),'&amp;amp;ns;',''), '&amp;amp;nsp;',''),'v\:*',''),'o\:*', ''),'w\:*',''),'..shape','');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;loop;&lt;/P&gt;&lt;P&gt;tab2:&lt;BR /&gt;load&lt;BR /&gt;RecNo,&lt;BR /&gt;HTML_description,&lt;BR /&gt;'$(vtext)' as text&lt;BR /&gt;Resident tab1&lt;BR /&gt;Where RecNo=$(vID);&lt;/P&gt;&lt;P&gt;next vRow;&lt;/P&gt;&lt;P&gt;drop Table tab1;&lt;/P&gt;&lt;P&gt;Exit Script;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;SB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-HTML-code-from-email-message-field/m-p/1548063#M598510</guid>
      <dc:creator>sudhakar_budde</dc:creator>
      <dc:date>2024-11-16T04:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Remove HTML code from email message field</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-HTML-code-from-email-message-field/m-p/1548165#M598511</link>
      <description>&lt;P&gt;I think you can use the Regex connector?&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/connectors/Subsystems/Web_Connectors_help/Content/Connectors_QWC/Data-Source-Connectors/RegEx-Connector.htm" target="_blank"&gt;https://help.qlik.com/en-US/connectors/Subsystems/Web_Connectors_help/Content/Connectors_QWC/Data-Source-Connectors/RegEx-Connector.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 15:22:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-HTML-code-from-email-message-field/m-p/1548165#M598511</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-02-22T15:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Remove HTML code from email message field</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-HTML-code-from-email-message-field/m-p/1552958#M598512</link>
      <description>&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;Thanks for your message.&lt;/P&gt;&lt;P&gt;Sorry, I am a bit confused here!&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data is already fetched via a web connector'&amp;nbsp;Qlik Microsoft Dynamics CRM Connector'. How can I use the Regex again? Can you please elaborate on this?&lt;/P&gt;&lt;P&gt;Also, in the list of the web connectors (where&amp;nbsp;Qlik Microsoft Dynamics CRM Connector is installed) , there is no Regex connector available! Do I need to install it? I am not familiar with this yet. Please help me how to get the solution to my problem (main post).&lt;/P&gt;&lt;P&gt;The code I posted is fetching one record per second. If there are at least 1000 of records it will be taking a lot of time to complete the transformation!&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;SB&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 12:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-HTML-code-from-email-message-field/m-p/1552958#M598512</guid>
      <dc:creator>sudhakar_budde</dc:creator>
      <dc:date>2019-03-06T12:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Remove HTML code from email message field</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-HTML-code-from-email-message-field/m-p/1553029#M598513</link>
      <description>&lt;P&gt;Is this QlikVIew or Qlik Sense?&amp;nbsp; If QlikView you can use:&lt;/P&gt;&lt;P&gt;Qlikview Cookbook: Strip HTML From Text &lt;A href="http://qlikviewcookbook.com/recipes/download-info/strip-html-from-text/" target="_blank"&gt;http://qlikviewcookbook.com/recipes/download-info/strip-html-from-text/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That referenced example will be rather fast.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 14:43:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-HTML-code-from-email-message-field/m-p/1553029#M598513</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-03-06T14:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Remove HTML code from email message field</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-HTML-code-from-email-message-field/m-p/1553060#M598515</link>
      <description>Hi Rob,&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;Yeah, sorry this is for Qlik Sense scripting only! I didn't find a Qlik Sense scripting forum, that's why I posted here.&lt;BR /&gt;&lt;BR /&gt;Is your QlikView script not compatible with Qlik Sense?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;SB&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Mar 2019 15:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-HTML-code-from-email-message-field/m-p/1553060#M598515</guid>
      <dc:creator>sudhakar_budde</dc:creator>
      <dc:date>2019-03-06T15:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Remove HTML code from email message field</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-HTML-code-from-email-message-field/m-p/1553294#M598516</link>
      <description>&lt;P&gt;QlikVIew allows you to create script functions in the Module (Ctrl-m), Qlik Sense does not.&amp;nbsp; To create additional functions in Qlik Sense script, you have to use a connector or use a server side extension. Both require some setup.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 04:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-HTML-code-from-email-message-field/m-p/1553294#M598516</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-03-07T04:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Remove HTML code from email message field</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-HTML-code-from-email-message-field/m-p/1564123#M598517</link>
      <description>&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;Thanks for your response on my question.&lt;/P&gt;&lt;P&gt;I explored the Regex connector, but unfortunately I don't have the knowledge of creating a Regular expression. I tried to seek some help but not lucky!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used your script to remove the HTML code from a field. But I am getting a 'General script error' ! I couldn't figure out what I am doing wrong. Can you please help me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script that I am using is:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Email_Message_Table:&lt;BR /&gt;LOAD&lt;BR /&gt;RecNo() as RecNo&lt;BR /&gt;,HTML_description as HTML_Message&lt;/P&gt;&lt;P&gt;Resident Table;&lt;BR /&gt;&lt;BR /&gt;//&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Mapping Loads &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;//&lt;/P&gt;&lt;P&gt;HtmlTag_Map:&lt;BR /&gt;&lt;BR /&gt;MAPPING LOAD DISTINCT '&amp;lt;' &amp;amp; TextBetween('&amp;lt;' &amp;amp; SubField(HTML_Message, '&amp;lt;', IterNo()),'&amp;lt;','&amp;gt;') &amp;amp; '&amp;gt;' as HtmlTag, '' as Substitute&lt;BR /&gt;Resident Email_Message_Table&lt;BR /&gt;While NOT IsNull(SubField(HTML_Message, '&amp;lt;', IterNo()));&lt;BR /&gt;&lt;BR /&gt;Special_Char_Map:&lt;BR /&gt;&lt;BR /&gt;MAPPING LOAD DISTINCT '{' &amp;amp; TextBetween('{' &amp;amp; SubField(HTML_Message, '{', IterNo()),'{','}') &amp;amp; '}' as HtmlTag1, '' as Substitute&lt;BR /&gt;Resident Email_Message_Table&lt;BR /&gt;While NOT IsNull(SubField(HTML_Message, '{', IterNo()));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ReplaceTag_Map:&lt;BR /&gt;mapping Load * inline [&lt;BR /&gt;HTML_Message, Substitute&lt;BR /&gt;table,''&lt;BR /&gt;&amp;amp;#13;,''&lt;BR /&gt;&amp;amp;#10;,''&lt;BR /&gt;&amp;amp;#13;,''&lt;BR /&gt;&amp;amp;#10;,''&lt;BR /&gt;body, ''&lt;BR /&gt;td,''&lt;BR /&gt;.shape,''&lt;BR /&gt;$&amp;lt;dir=rtl&amp;gt;$,''&lt;BR /&gt;.directional_text_wrapper ,''&lt;BR /&gt;&amp;amp;nbsp;,''&lt;BR /&gt;&amp;amp;amp;,'&amp;amp;'&lt;BR /&gt;&amp;amp;quot;,''&lt;BR /&gt;&amp;amp;quote;,''&lt;BR /&gt;&amp;amp;gt;,''&lt;BR /&gt;&amp;amp;lt;,''&lt;BR /&gt;&amp;amp;#43;,''&lt;BR /&gt;div.outlookmessageheader, ''&lt;BR /&gt;print{hs,''&lt;BR /&gt;.mozemailheaders,''&lt;BR /&gt;mailcontainerbody,''&lt;BR /&gt;*.location,''&lt;BR /&gt;.rtl,''&lt;BR /&gt;.info,''&lt;BR /&gt;.h2,''&lt;BR /&gt;h2,''&lt;BR /&gt;.location address, ''&lt;BR /&gt;.location, ''&lt;BR /&gt;.header, ''&lt;BR /&gt;.file,''&lt;BR /&gt;.createTD,''&lt;BR /&gt;.updateTD,''&lt;BR /&gt;.var,''&lt;BR /&gt;.mapicon,''&lt;BR /&gt;#entryInfo,''&lt;BR /&gt;.adr,''&lt;BR /&gt;a:hover adress,''&lt;BR /&gt;a:hover,''&lt;BR /&gt;span,''&lt;BR /&gt;*,''&lt;BR /&gt;file-name,''&lt;BR /&gt;$*,''&lt;BR /&gt;v\:*,''&lt;BR /&gt;o\:*,''&lt;BR /&gt;u\:*,''&lt;BR /&gt;w\:,''&lt;BR /&gt;&amp;lt;!--,''&lt;BR /&gt;/ Font Definitions /,''&lt;BR /&gt;@font-face,''&lt;BR /&gt;/ Style Definitions / ,''&lt;BR /&gt;p.MsoNormal,''&lt;BR /&gt;i.MsoNormal,''&lt;BR /&gt;div.MsoNormal,''&lt;BR /&gt;a:link,''&lt;BR /&gt;.MsoHyperlink,''&lt;BR /&gt;a:visited,''&lt;BR /&gt;.MsoHyperlinkFollowed,''&lt;BR /&gt;p.msonormal0,''&lt;BR /&gt;li.msonormal0,''&lt;BR /&gt;div.msonormal0,''&lt;BR /&gt;p.emailquote,''&lt;BR /&gt;li.emailquote,''&lt;BR /&gt;div.emailquote,''&lt;BR /&gt;.E-mailStijl20,''&lt;BR /&gt;.MsoChpDefault,''&lt;BR /&gt;@page WordSection1,''&lt;BR /&gt;div.WordSection1,''&lt;BR /&gt;--&amp;gt;,''&lt;BR /&gt;/ Font Definitions /,''&lt;BR /&gt;/ Style Definitions /,''&lt;BR /&gt;"&lt;A href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.d" target="_blank"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.d&lt;/A&gt;"&amp;gt;,''&lt;BR /&gt;-name,''&lt;BR /&gt;p.MsoTitle, li.MsoTitle, div.MsoTitle,''&lt;BR /&gt;.TitleChar,''&lt;BR /&gt;.Heading2Char,''&lt;BR /&gt;.EmailStyle20,''&lt;BR /&gt;p.Default, li.Default, div.Default,''&lt;BR /&gt;/ List Definitions /,''&lt;BR /&gt;@list l0,''&lt;BR /&gt;:level1,''&lt;BR /&gt;:level2,''&lt;BR /&gt;:level3,''&lt;BR /&gt;:level4,''&lt;BR /&gt;:level5,''&lt;BR /&gt;:level6,''&lt;BR /&gt;:level7,''&lt;BR /&gt;:level8,''&lt;BR /&gt;:level9,''&lt;BR /&gt;] ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Transformation &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; //&lt;BR /&gt;&lt;BR /&gt;JOIN(Email_Message_Table)&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;RecNo,&lt;BR /&gt;MapSubstring('HtmlTag_Map', HTML_Message) as Description&lt;BR /&gt;Resident Email_Message_Table;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;SB&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 16:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-HTML-code-from-email-message-field/m-p/1564123#M598517</guid>
      <dc:creator>sudhakar_budde</dc:creator>
      <dc:date>2019-04-02T16:59:29Z</dc:date>
    </item>
  </channel>
</rss>

