<?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: Why does the HTML pop-up strip internal spaces? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/1553907#M89649</link>
    <description>&lt;P&gt;This also works in ArcGIS Pro to add trailing whitespace in strings in reports where postStr="&amp;nbsp; &amp;nbsp;" fails.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2024 18:39:15 GMT</pubDate>
    <dc:creator>WillIsaacs</dc:creator>
    <dc:date>2024-10-30T18:39:15Z</dc:date>
    <item>
      <title>Why does the HTML pop-up strip internal spaces?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/634864#M28262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some parcel data that has more than 1 space between the Township/Range section and the Lot eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;1N1E36D&amp;nbsp;&amp;nbsp;-00100&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;However in both ArcGIS Pro and ArcGIS Online the popup strips the internal spaces to just one space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN&gt;1N1E36D -00100&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have tried arcade expressions to get the popup to render the internal spaces correctly to reflect how they are in the database:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Replace($feature.PARCEL_APN," ","nbsp")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; but it shows this instead:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;1N1E36Dnbspnbsp-00100&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;* note I used the correct syntax, i just used the incorrect syntax here so it wouldn't render as spaces&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The popup always strips them after the expression calculation so it doesn't matter what I do in the expression builder for configuring the popup. This also happens in ArcGIS Online as well.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Am I just missing the sytnax or is this one of those it's a feature not a bug kind of things?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2019 19:32:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/634864#M28262</guid>
      <dc:creator>Anthony</dc:creator>
      <dc:date>2019-05-29T19:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the HTML pop-up strip internal spaces?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/634865#M28263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/305551" target="_blank"&gt;Anthony Blackham&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree that this should be considered a bug, although it might be behaviour as designed. If a user needs to have multiple sequential spaces in a string, these shouldn´t be automatically stripped out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is however an alternative that seems to work when you replace the space by Alt+255. This works in the pop-up, not in the label expression. See example below where I used more spaces to make it more visual:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/448810_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wee below the expression I used:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/448809_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression (please note that the second pair of quotes contains the Alt+255 instead of a space):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; par &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"1N1E36D     -00100"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; alt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Replace&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;par&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; alt&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:00:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/634865#M28263</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T03:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the HTML pop-up strip internal spaces?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/634866#M28264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the tip, I'll try it out on the web map, it still doesn't seem to be working on ArcGIS Pro for the expression in configuring the popup (when clicking on a parcel using the explore button)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/448814_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/448815_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2019 22:26:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/634866#M28264</guid>
      <dc:creator>Anthony</dc:creator>
      <dc:date>2019-05-29T22:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the HTML pop-up strip internal spaces?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/634867#M28265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You shouldn't&amp;nbsp;include (write)&amp;nbsp;&amp;nbsp;"Alt+255" in the expression. You should hold the Alt key and type 255, this will produce the alternative space sign.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 15:24:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/634867#M28265</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-05-30T15:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the HTML pop-up strip internal spaces?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/634868#M28266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my mistake, I'm used to unicode characters. I can confirm this worked as anticipated, thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 14:58:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/634868#M28266</guid>
      <dc:creator>Anthony</dc:creator>
      <dc:date>2019-05-31T14:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the HTML pop-up strip internal spaces?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/634869#M28267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to hear that it worked.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 15:01:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/634869#M28267</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-05-31T15:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the HTML pop-up strip internal spaces?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/634870#M28268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just an update for anyone else who comes across this - it looks like the issue was fixed in ArcGis Pro 2.5.&amp;nbsp;I don't know if it will also be fixed on ArcGIS online, I'll have to check once our enterprise environment is updated with the new beta.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 19:34:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/634870#M28268</guid>
      <dc:creator>Anthony</dc:creator>
      <dc:date>2020-02-20T19:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the HTML pop-up strip internal spaces?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/1004326#M34510</link>
      <description>&lt;P&gt;as another update, behaviour reverted in ArcGIS Pro 2.6 so the workaround above is again needed if you wish to retain internal spaces when copy/pasting contents of the HTML popups.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 17:16:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/1004326#M34510</guid>
      <dc:creator>Anthony</dc:creator>
      <dc:date>2020-11-24T17:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the HTML pop-up strip internal spaces?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/1553907#M89649</link>
      <description>&lt;P&gt;This also works in ArcGIS Pro to add trailing whitespace in strings in reports where postStr="&amp;nbsp; &amp;nbsp;" fails.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 18:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-does-the-html-pop-up-strip-internal-spaces/m-p/1553907#M89649</guid>
      <dc:creator>WillIsaacs</dc:creator>
      <dc:date>2024-10-30T18:39:15Z</dc:date>
    </item>
  </channel>
</rss>

