<?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 strip HTML codes from a field during load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/strip-HTML-codes-from-a-field-during-load-script/m-p/1524786#M1291677</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a field in a table that contains HTML tags&lt;BR /&gt;I want to strip these HTML tags from the field during load script&lt;/P&gt;&lt;P&gt;How can I accomplish this?&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>strip HTML codes from a field during load script</title>
      <link>https://community.qlik.com/t5/QlikView/strip-HTML-codes-from-a-field-during-load-script/m-p/1524786#M1291677</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a field in a table that contains HTML tags&lt;BR /&gt;I want to strip these HTML tags from the field during load script&lt;/P&gt;&lt;P&gt;How can I accomplish this?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strip-HTML-codes-from-a-field-during-load-script/m-p/1524786#M1291677</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: strip HTML codes from a field during load script</title>
      <link>https://community.qlik.com/t5/QlikView/strip-HTML-codes-from-a-field-during-load-script/m-p/1524808#M1291679</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Use this functions&amp;nbsp;&lt;SPAN&gt;TextBetween,&amp;nbsp;Replace and PurgeChar in iterative loop for field value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is my solution:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Find tags:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;TextBetween('&amp;lt;tag&amp;gt;text', '&amp;lt;', '&amp;gt;')&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Returns&amp;nbsp;'tag'. Use it as search text&amp;nbsp; in replace function below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Replace tags to nothing: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;Replace('&amp;lt;tag&amp;gt;text', &lt;FONT color="#339966"&gt;TextBetween('&amp;lt;tag&amp;gt;text', '&amp;lt;', '&amp;gt;')&lt;/FONT&gt;, '') &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Returns '&amp;lt;&amp;gt;text'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Remove all &amp;lt;, &amp;gt; chars&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PurgeChar ( '&amp;lt;&amp;gt;text', '&amp;lt;&amp;gt;' )&amp;nbsp; Returns text&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 12:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strip-HTML-codes-from-a-field-during-load-script/m-p/1524808#M1291679</guid>
      <dc:creator>Zhandos_Shotan</dc:creator>
      <dc:date>2018-12-28T12:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: strip HTML codes from a field during load script</title>
      <link>https://community.qlik.com/t5/QlikView/strip-HTML-codes-from-a-field-during-load-script/m-p/1524872#M1291681</link>
      <description>&lt;P&gt;what did you mean by "in iterative loop for the field value"&lt;/P&gt;&lt;P&gt;can you give me sample script?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 15:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strip-HTML-codes-from-a-field-during-load-script/m-p/1524872#M1291681</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2018-12-28T15:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: strip HTML codes from a field during load script</title>
      <link>https://community.qlik.com/t5/QlikView/strip-HTML-codes-from-a-field-during-load-script/m-p/1524938#M1291683</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Here it is:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;tab1:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;load * inline&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;[id, html&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;1,'&amp;lt;tag1&amp;gt;text1&amp;lt;tag2&amp;gt;text2&amp;lt;/tag2&amp;gt;&amp;lt;/tag1&amp;gt;&amp;lt;tag3&amp;gt;text3&amp;lt;tag3&amp;gt;'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;2, '&amp;lt;tag4&amp;gt;text4&amp;lt;tag5&amp;gt;text5&amp;lt;/tag5&amp;gt;&amp;lt;tag6&amp;gt;text6&amp;lt;/tag6&amp;gt;&amp;lt;/tag4&amp;gt;'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;For vRow = 1 to NoOfRows('tab1')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Let vID = Peek('id',vRow-1,'tab1');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Let vtext = Peek('html',vRow-1,'tab1');&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;do while len(TextBetween(vtext, '&amp;lt;', '&amp;gt;'))&amp;gt;0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;vtext=Replace(vtext, TextBetween(vtext, '&amp;lt;', '&amp;gt;'), '');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;vtext=Replace(vtext, '&amp;lt;&amp;gt;', '');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;loop;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;tab2:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;load&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;id,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;html,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;'$(vtext)' as text&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Resident tab1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Where id=$(vID);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;next vRow;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;drop Table tab1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;Happy New Year!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Dec 2018 09:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strip-HTML-codes-from-a-field-during-load-script/m-p/1524938#M1291683</guid>
      <dc:creator>Zhandos_Shotan</dc:creator>
      <dc:date>2018-12-29T09:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: strip HTML codes from a field during load script</title>
      <link>https://community.qlik.com/t5/QlikView/strip-HTML-codes-from-a-field-during-load-script/m-p/1525284#M1291686</link>
      <description>&lt;P&gt;thank you for your prompt reply&lt;/P&gt;&lt;P&gt;but the thing is that my table is large and adding a loop to the script makes reload takes a lot of time&lt;/P&gt;&lt;P&gt;isn't there a quicker approach?&lt;BR /&gt;&lt;BR /&gt;I tried this approach but I'm getting a General Script Error:&lt;BR /&gt;&lt;BR /&gt;HtmlTag_Map:Mapping&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt;'&amp;lt;' &amp;amp; TextBetween('&amp;lt;' &amp;amp; SubField(PYDESCRIPTION, '&amp;lt;', IterNo()),'&amp;lt;','&amp;gt;') &amp;amp; '&amp;gt;' as HtmlTag,&lt;BR /&gt;'' as Substitute&lt;BR /&gt;Resident CASES_PEGA&lt;BR /&gt;While NOT IsNull(SubField(PYDESCRIPTION, '&amp;lt;', IterNo()));&lt;BR /&gt;&lt;BR /&gt;Left Join(CASES_PEGA)&lt;BR /&gt;temp:&lt;BR /&gt;Load Distinct&lt;BR /&gt;CASE_ID&lt;BR /&gt;,MapSubstring('HtmlTag_Map', PYDESCRIPTION) as Field_Cleansed&lt;BR /&gt;Resident CASES_PEGA;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 08:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strip-HTML-codes-from-a-field-during-load-script/m-p/1525284#M1291686</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2019-01-02T08:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: strip HTML codes from a field during load script</title>
      <link>https://community.qlik.com/t5/QlikView/strip-HTML-codes-from-a-field-during-load-script/m-p/1525637#M1291688</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Table name not allowed in join load script:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;Left Join(CASES_PEGA)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;STRIKE&gt;&lt;FONT color="#FF0000"&gt;temp:&lt;/FONT&gt;&lt;/STRIKE&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;Load Distinct&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;CASE_ID&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;,MapSubstring('HtmlTag_Map', PYDESCRIPTION) as Field_Cleansed&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;Resident CASES_PEGA;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 04:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strip-HTML-codes-from-a-field-during-load-script/m-p/1525637#M1291688</guid>
      <dc:creator>Zhandos_Shotan</dc:creator>
      <dc:date>2019-01-03T04:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: strip HTML codes from a field during load script</title>
      <link>https://community.qlik.com/t5/QlikView/strip-HTML-codes-from-a-field-during-load-script/m-p/1548045#M1291690</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your code to strip the html from a field.&lt;/P&gt;&lt;P&gt;This is working as expected. But unfortunately, it is taking 1 second per record to load the data!&lt;/P&gt;&lt;P&gt;As I have more than 50000 records it is going to taking hours to complete the load.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any quick solution for this please?&lt;/P&gt;&lt;P&gt;To avoid looping, I have tried the below code as well this is not working either!&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;LOAD RecNo() as RecNo,&lt;BR /&gt;Html_Field&lt;BR /&gt;,Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Html_Field, TextBetween(Html_Field, '&amp;lt;', '&amp;gt;'), ''), '&amp;lt;&amp;gt;', ''),TextBetween(Html_Field, '{', '}'),''),'{}',''),'&amp;amp;ns;',''), '&amp;amp;nsp;',''),'v\:*',''),'o\:*', ''),'w\:*',''),'..shape','') as Cleaned_Field&lt;/P&gt;&lt;P&gt;FROM [xyz.qvd] (qvd);&lt;/P&gt;&lt;P&gt;I also tried the code in the below link, this is not working either!&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Removing-HTML-markup-code/td-p/466050" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Development/Removing-HTML-markup-code/td-p/466050&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other solution please?&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 12:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strip-HTML-codes-from-a-field-during-load-script/m-p/1548045#M1291690</guid>
      <dc:creator>sudhakar_budde</dc:creator>
      <dc:date>2019-02-22T12:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: strip HTML codes from a field during load script</title>
      <link>https://community.qlik.com/t5/QlikView/strip-HTML-codes-from-a-field-during-load-script/m-p/2112270#M1291692</link>
      <description>&lt;P&gt;Worked for me, thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 11:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strip-HTML-codes-from-a-field-during-load-script/m-p/2112270#M1291692</guid>
      <dc:creator>sebastian_plosarek</dc:creator>
      <dc:date>2023-09-01T11:52:43Z</dc:date>
    </item>
  </channel>
</rss>

