<?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: How to remove html text? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-remove-html-text/m-p/1102533#M895349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These two lines may be the wrong way round:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P lang="es-CR" style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt; 'Replace all &amp;lt; and &amp;gt; with &amp;amp;lt; and &amp;amp;gt;&lt;/P&gt;&lt;P lang="es-CR" style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&amp;nbsp; strOutput = Replace(strOutput, "&amp;lt;", "&amp;amp;lt;")&lt;/P&gt;&lt;P lang="es-CR" style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&amp;nbsp; strOutput = Replace(strOutput, "&amp;gt;", "&amp;amp;gt;")&lt;/P&gt;&lt;P lang="es-CR" style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P lang="es-CR" style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;'The HTML will contain &amp;amp;lt; and &amp;amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="es-CR" style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 11pt; line-height: 1.5em;"&gt;&amp;nbsp; strOutput = Replace(strOutput, "&amp;amp;lt;"&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: Calibri; font-size: 14.6666669845581px;"&gt;, "&amp;lt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="es-CR" style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt; strOutput = Replace(strOutput, "&amp;amp;gt;"&lt;SPAN style="color: #3d3d3d; font-family: Calibri; font-size: 14.6666669845581px;"&gt;, "&amp;gt;"&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Aug 2016 13:07:42 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2016-08-01T13:07:42Z</dc:date>
    <item>
      <title>How to remove html text?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-html-text/m-p/1102531#M895347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a odbc connection and there are some fields that have html code in them. Do you know an easy way to remove the html code to be displayed on qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;1. &lt;/SPAN&gt;Go to Tools &amp;gt;Edit Module, add the following: &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Function stripHTML(strHTML)&amp;nbsp; &lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;'Strips the HTML tags from strHTML&lt;/P&gt;&lt;P lang="es-CR"&gt;&lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp; Dim objRegExp, strOutput&lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp; Set objRegExp = New Regexp&lt;/P&gt;&lt;P lang="es-CR"&gt;&lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp; objRegExp.IgnoreCase = True&lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp; objRegExp.Global = True&lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp; objRegExp.Pattern = "&amp;lt;(.|\n)+?&amp;gt;"&lt;/P&gt;&lt;P lang="es-CR"&gt;&lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp; 'Replace all HTML tag matches with the empty string&lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp; strOutput = objRegExp.Replace(strHTML, "")&lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp; 'Replace all &amp;lt; and &amp;gt; with &amp;amp;lt; and &amp;amp;gt;&lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp; strOutput = Replace(strOutput, "&amp;lt;", "&amp;amp;lt;")&lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp; strOutput = Replace(strOutput, "&amp;gt;", "&amp;amp;gt;")&lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp; stripHTML = strOutput&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Return the value of strOutput&lt;/P&gt;&lt;P lang="es-CR"&gt;&lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp; Set objRegExp = Nothing&lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;End Function&lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;&lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;"&gt;2. In Edit Script, after the field type: &lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="es-CR" style="font-family: Calibri; font-size: 11pt;"&gt;&lt;/P&gt;&lt;P lang="es-CR" style="margin: 0px 0px 0px 0.375in; font-family: Calibri; font-size: 11pt;"&gt;replace(replace(stripHTML([content/properties/Your filed name])&lt;/P&gt;&lt;P lang="es-CR" style="margin: 0px 0px 0px 0.375in; font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,'&amp;amp;#58;',':')&lt;/P&gt;&lt;P lang="es-CR" style="margin: 0px 0px 0px 0.375in; font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,'&amp;amp;#160;',' ') as newcleanfiledname,&lt;/P&gt;&lt;P lang="es-CR" style="margin: 0px 0px 0px 0.375in; font-family: Calibri; font-size: 11pt;"&gt;&lt;/P&gt;&lt;P lang="es-CR" style="margin: 0px 0px 0px 0.375in; font-family: Calibri; font-size: 11pt;"&gt;&lt;/P&gt;&lt;P lang="es-CR" style="margin: 0px 0px 0px 0.375in; font-family: Calibri; font-size: 11pt;"&gt;But this didn't work for me. Any idea?&lt;/P&gt;&lt;P lang="es-CR" style="margin: 0px 0px 0px 0.375in; font-family: Calibri; font-size: 11pt;"&gt;&lt;/P&gt;&lt;P lang="es-CR" style="margin: 0px 0px 0px 0.375in; font-family: Calibri; font-size: 11pt;"&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-html-text/m-p/1102531#M895347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove html text?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-html-text/m-p/1102532#M895348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on how complicated the HTML text is. If its a fairly consistent pattern, you may be able to get away with using the built-in string handling functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is not practical, a module function using Regexes should work, but clearly requires some debugging. Test the module with sample data from your source by sprinkling with MsgBoxes to see what it is doing, and where it may be going wrong. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 13:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-html-text/m-p/1102532#M895348</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-08-01T13:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove html text?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-html-text/m-p/1102533#M895349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These two lines may be the wrong way round:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P lang="es-CR" style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt; 'Replace all &amp;lt; and &amp;gt; with &amp;amp;lt; and &amp;amp;gt;&lt;/P&gt;&lt;P lang="es-CR" style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&amp;nbsp; strOutput = Replace(strOutput, "&amp;lt;", "&amp;amp;lt;")&lt;/P&gt;&lt;P lang="es-CR" style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&amp;nbsp; strOutput = Replace(strOutput, "&amp;gt;", "&amp;amp;gt;")&lt;/P&gt;&lt;P lang="es-CR" style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P lang="es-CR" style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;'The HTML will contain &amp;amp;lt; and &amp;amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="es-CR" style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 11pt; line-height: 1.5em;"&gt;&amp;nbsp; strOutput = Replace(strOutput, "&amp;amp;lt;"&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: Calibri; font-size: 14.6666669845581px;"&gt;, "&amp;lt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P lang="es-CR" style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt; strOutput = Replace(strOutput, "&amp;amp;gt;"&lt;SPAN style="color: #3d3d3d; font-family: Calibri; font-size: 14.6666669845581px;"&gt;, "&amp;gt;"&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 13:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-html-text/m-p/1102533#M895349</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-08-01T13:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove html text?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-html-text/m-p/1102534#M895350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Calibri; font-size: 14.6666669845581px;"&gt;&amp;gt;&amp;gt;replace(replace(stripHTML([&lt;STRONG&gt;content/properties/Your filed name&lt;/STRONG&gt;])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Calibri; font-size: 14.6666669845581px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Calibri; font-size: 14.6666669845581px;"&gt;This field name looks like something from an XML load. If the HTML is well formed, then this another way to read the data, but you will not need the model functions.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 13:09:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-html-text/m-p/1102534#M895350</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-08-01T13:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove html text?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-html-text/m-p/1102535#M895351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, this is what I have, for example one of my fields is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt;Test, this is a test for qlikview.$nbsp;&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt; This is another test for qlikview~530&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can modify the code to remove the html code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 15:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-html-text/m-p/1102535#M895351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-01T15:01:10Z</dc:date>
    </item>
  </channel>
</rss>

