<?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: Issue with stripHTML function in QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1582024#M442973</link>
    <description>&lt;P&gt;Many makros won't be executed on the server-side. There are a few execptions and AFAIK macro-functions belong to them and should work if macros are enabled within the server and the code didn't contain references to the ActiveDocument (didn't exists on this level whereby your code didn't include any) and ActiveX (here I'm not absolutely sure if it's possible - but if ActiveX must be enabled properly within the OS - and I think your used RegEx based on it). If any of the mentioned causes is true it will lead to an invalid function which may return an error-message like yours.&lt;/P&gt;&lt;P&gt;I think I would start with a simple test of a macro-function - maybe with a dummy app/data - which used a single replace() to change e to a. If it's worked you know that such macro-function worked in general and your issue is caused from the ActiveX part. To enable it might be difficult especially as it could violate any security rules in your company.&lt;/P&gt;&lt;P&gt;Your attempt to use the function within the UI won't work unless you enables the macro-functions within the easter egg whereby it's not recommended to change these settings.&lt;/P&gt;&lt;P&gt;As an alternatively you could try to implement your transformation with native Qlik functions. Quite useful for it is mapsubstring(). Here an example what is meant: &lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Passing-parameter-strings-that-contain-special-characters/m-p/1247166" target="_blank" rel="noopener"&gt;Passing-parameter-strings-that-contain-special-characters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2019 08:13:13 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2019-05-20T08:13:13Z</dc:date>
    <item>
      <title>Issue with stripHTML function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581536#M442936</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I am trying to eliminate html codes from my data using stripHTML function. I am using the below macro for the same,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Function stripHTML(strHTML)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'Strips the HTML tags from strHTML&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim objRegExp, strOutput&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Set objRegExp = New Regexp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;objRegExp.IgnoreCase = True&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;objRegExp.Global = True&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;objRegExp.Pattern = "(?:&amp;lt;style.+?&amp;gt;.+?&amp;lt;/style&amp;gt;|&amp;lt;script.+?&amp;gt;.+?&amp;lt;/script&amp;gt;|&amp;lt;(?:!|/?[a-zA-Z]+).*?/?&amp;gt;)"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'Replace all HTML tag matches with the empty string&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;strOutput = objRegExp.Replace(strHTML, "")&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;'Replace all &amp;lt; and &amp;gt; with &amp;amp;lt; and &amp;amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;strOutput = Replace(strOutput, "&amp;amp;lt;", "&amp;lt;")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;strOutput = Replace(strOutput, "&amp;amp;gt;", "&amp;gt;")&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;stripHTML = strOutput 'Return the value of strOutput&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set objRegExp = Nothing&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;End Function&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The issue is, when I reload the report locally in my server, the report executes without any errors, but when reloaded on QMC, I get the below error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PR error msg.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12248i2678BE89C228E8A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="PR error msg.PNG" alt="PR error msg.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any guesses what could be the possible reason for this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 12:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581536#M442936</guid>
      <dc:creator>apoorvasd</dc:creator>
      <dc:date>2019-05-17T12:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with stripHTML function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581541#M442937</link>
      <description>&lt;P&gt;Where did you given this script? In the module side or Somewhere? If module side, what is the usage of this?&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 12:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581541#M442937</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-05-17T12:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with stripHTML function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581549#M442938</link>
      <description>&lt;P&gt;The function looks OK to me (not tested).&lt;/P&gt;&lt;P&gt;Please show the code that invokes the function. Its possible that the function is returning an empty string which is causing another problem.&lt;/P&gt;&lt;P&gt;Do you know which line is throwing the error?&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 12:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581549#M442938</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-05-17T12:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with stripHTML function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581956#M442955</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am calling it this way at script side,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Replace(Replace(stripHTML(Remarks), '&amp;amp;#58', ''), '&amp;amp;#160', '') as Remark_PS,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PR1.PNG" style="width: 832px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12316iC8F7E874FF6BA2BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="PR1.PNG" alt="PR1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also just tried to call this expression in a text box to see if I can find any error. Looks like a syntax issue, is it?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 05:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581956#M442955</guid>
      <dc:creator>apoorvasd</dc:creator>
      <dc:date>2019-05-20T05:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with stripHTML function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581957#M442956</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Yes, I have written this as a module script. As far as I know it is required to invoke the StripHTML function.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 05:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581957#M442956</guid>
      <dc:creator>apoorvasd</dc:creator>
      <dc:date>2019-05-20T05:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with stripHTML function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581974#M442960</link>
      <description>&lt;P&gt;Have you tested the regex pattern?&lt;/P&gt;&lt;P&gt;It throws errors in a tool like regxr.com for unescaped '/' characters. The error could be coming from the Match() command with a bad pattern. Try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(?:&amp;lt;style.+?&amp;gt;.+?&amp;lt;\/style&amp;gt;|&amp;lt;script.+?&amp;gt;.+?&amp;lt;\/script&amp;gt;|&amp;lt;(?:!|\/?[a-zA-Z]+).*?\/?&amp;gt;)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is valid, but may not be semantically correct.&amp;nbsp; I suspect you need some more parentheses and the third non capture group is not clear. I assume you want to match the opening and optional closing html tags?&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 06:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581974#M442960</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-05-20T06:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with stripHTML function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581976#M442961</link>
      <description>&lt;P&gt;Hmm...no i haven't tested the regex pattern! Where can I check this?&lt;/P&gt;&lt;P&gt;I tried your new pattern, it isn't working and throwing up the same error!&lt;/P&gt;&lt;P&gt;Any other suggestion?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 06:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581976#M442961</guid>
      <dc:creator>apoorvasd</dc:creator>
      <dc:date>2019-05-20T06:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with stripHTML function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581981#M442962</link>
      <description>&lt;P&gt;&lt;SPAN&gt;regxr.com is one on line tester. There are others&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 06:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581981#M442962</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-05-20T06:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with stripHTML function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581984#M442964</link>
      <description>&lt;P&gt;Okay, will check that. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 06:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1581984#M442964</guid>
      <dc:creator>apoorvasd</dc:creator>
      <dc:date>2019-05-20T06:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with stripHTML function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1582024#M442973</link>
      <description>&lt;P&gt;Many makros won't be executed on the server-side. There are a few execptions and AFAIK macro-functions belong to them and should work if macros are enabled within the server and the code didn't contain references to the ActiveDocument (didn't exists on this level whereby your code didn't include any) and ActiveX (here I'm not absolutely sure if it's possible - but if ActiveX must be enabled properly within the OS - and I think your used RegEx based on it). If any of the mentioned causes is true it will lead to an invalid function which may return an error-message like yours.&lt;/P&gt;&lt;P&gt;I think I would start with a simple test of a macro-function - maybe with a dummy app/data - which used a single replace() to change e to a. If it's worked you know that such macro-function worked in general and your issue is caused from the ActiveX part. To enable it might be difficult especially as it could violate any security rules in your company.&lt;/P&gt;&lt;P&gt;Your attempt to use the function within the UI won't work unless you enables the macro-functions within the easter egg whereby it's not recommended to change these settings.&lt;/P&gt;&lt;P&gt;As an alternatively you could try to implement your transformation with native Qlik functions. Quite useful for it is mapsubstring(). Here an example what is meant: &lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Passing-parameter-strings-that-contain-special-characters/m-p/1247166" target="_blank" rel="noopener"&gt;Passing-parameter-strings-that-contain-special-characters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 08:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1582024#M442973</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-05-20T08:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with stripHTML function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1596462#M443966</link>
      <description>&lt;P&gt;I have a hunch I know what the issue is, believe it should be that the QlikViewBatch Settings.ini is missing the following setting:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;AllowMacroFunctionsInExpressions&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That would need to have an =1 to be activated there.&amp;nbsp; The setting will not be there, you will have to manually add it as follows within the [Settings 7] area:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;AllowMacroFunctionsInExpressions=1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I believe that should get things working when you run it via Publisher/Reload Engine task.&amp;nbsp; Hopefully this does the trick, I believe you should have had to have changed this in the client settings as well though, so I am a bit puzzled there! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Brett&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;PS, helps if I remember to give you the path to the Settings.ini! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; Sorry about that:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;C:\Windows\System32\config\systemprofile\AppData\Roaming\QlikTech\QlikViewBatch\&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 20:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-stripHTML-function-in-QlikView/m-p/1596462#M443966</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-06-26T20:44:09Z</dc:date>
    </item>
  </channel>
</rss>

