<?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: Removing label HTML formatting from survey results? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/removing-label-html-formatting-from-survey-results/m-p/837010#M19939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Realized this was in the wrong group, moved it to the correct one. Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2016 22:45:48 GMT</pubDate>
    <dc:creator>Mary_AnnSweeney</dc:creator>
    <dc:date>2016-03-31T22:45:48Z</dc:date>
    <item>
      <title>Removing label HTML formatting from survey results?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/removing-label-html-formatting-from-survey-results/m-p/837007#M19936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using this blog post Surveys with style &lt;A _jive_internal="true" href="https://community.esri.com/groups/survey123/blog/2015/08/24/surveys-with-style#comments" title="https://community.esri.com/groups/survey123/blog/2015/08/24/surveys-with-style#comments"&gt;https://community.esri.com/groups/survey123/blog/2015/08/24/surveys-with-style#comments&lt;/A&gt; I added html formatting to my survey choices to make my text legible against my color scheme.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. from XLSform, choices sheet. list_name, name, label, respectively&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="425"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="17" width="93"&gt;landowner&lt;/TD&gt;&lt;TD width="122"&gt;UND&lt;/TD&gt;&lt;TD colspan="2" width="210"&gt;&amp;lt;font color="black"&amp;gt;Undetermined&amp;lt;/font&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However in my Survey Results, it continues to use these labels versus the name assigned to it. Should html formatting be reserved for notes and hints only? Or can I change the appearance of choices some other way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="193453" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/193453_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 18:38:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/removing-label-html-formatting-from-survey-results/m-p/837007#M19936</guid>
      <dc:creator>Mary_AnnSweeney</dc:creator>
      <dc:date>2016-03-30T18:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Removing label HTML formatting from survey results?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/removing-label-html-formatting-from-survey-results/m-p/837008#M19937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone!!&lt;/P&gt;&lt;P&gt;I have a little big problem &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;SPAN&gt;, I have&amp;nbsp; a file "File CPG (.cpg)",I try to open this in my ARCGIS10 but not let me "Invalid raster dataset. Failed to create raster layer". Any suggestions for open this file? My email is &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:fhas33@gmail.com"&gt;fhas33@gmail.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 16:18:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/removing-label-html-formatting-from-survey-results/m-p/837008#M19937</guid>
      <dc:creator>HernandezAstorga</dc:creator>
      <dc:date>2016-03-31T16:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Removing label HTML formatting from survey results?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/removing-label-html-formatting-from-survey-results/m-p/837009#M19938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mary, given what you gave, I assume that these fields were basically used for label formatting on a published map or report.&amp;nbsp; You now wish to use these field as data inputs elsewhere, but have html coding as part of the field.&amp;nbsp; This was an old fashion way of formatting labels.&amp;nbsp; My suggestion is to either write a script to strip the html tags or use the field calculator advanced section and write a mini script to trip the tags away from the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Python has a module called HTMLParser which does the very thing you are look for and a more through way of doing the stripping&amp;nbsp; the code would look something like this...&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt;More advanced type of Python&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="kwd"&gt;from HTMLParser import HTMLParser&lt;/SPAN&gt;
&lt;CODE&gt;&lt;SPAN class="kwd"&gt;class&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ"&gt;MLStripper&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ"&gt;HTMLParser&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;):&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;def&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; __init__&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;self&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;):&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&amp;nbsp; self&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;reset&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;()&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&amp;nbsp; self&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;fed &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;[]&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;def&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; handle_data&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;self&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; d&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;):&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&amp;nbsp; self&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;fed&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;append&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;d&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;def&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; handle_entityref&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;self&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; name&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;):&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&amp;nbsp; self&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;fed&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;append&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;'&amp;amp;%s;'&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;%&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; name&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;def&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; get_data&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;self&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;):&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;return&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="str"&gt;''&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;join&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;self&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;fed&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;
&lt;CODE&gt;&lt;SPAN class="pln"&gt;

&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;def&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; html_to_text&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;html&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;):&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&amp;nbsp; s &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ"&gt;MLStripper&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;()&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&amp;nbsp; s&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;feed&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;html&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;return&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; s&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;get_data&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;()&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Your examples appear to be fairly simple in nature so using the field calculator you may be able to successfully strip the tags using the following mini script :&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;remove_html_tags(!YourFieldName!)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Block:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import re
def remove_html_tags(data):
&amp;nbsp; p = re.compile(r'&amp;lt;.*?&amp;gt;')
&amp;nbsp; return p.sub('', data)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:10:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/removing-label-html-formatting-from-survey-results/m-p/837009#M19938</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2021-12-12T10:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Removing label HTML formatting from survey results?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/removing-label-html-formatting-from-survey-results/m-p/837010#M19939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Realized this was in the wrong group, moved it to the correct one. Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 22:45:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/removing-label-html-formatting-from-survey-results/m-p/837010#M19939</guid>
      <dc:creator>Mary_AnnSweeney</dc:creator>
      <dc:date>2016-03-31T22:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Removing label HTML formatting from survey results?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/removing-label-html-formatting-from-survey-results/m-p/837011#M19940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good news Mary - this issue will be fixed in the next release of Survey123!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any HTML formatting will be stripped from your labels when they are used to create the field alias values. Or, if you prefer, you can specify your own field alias values to override the values from the label field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep an eye on our blog because the next release drops soon!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Hannah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 05:52:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/removing-label-html-formatting-from-survey-results/m-p/837011#M19940</guid>
      <dc:creator>HannahFerrier</dc:creator>
      <dc:date>2016-04-01T05:52:18Z</dc:date>
    </item>
  </channel>
</rss>

