<?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: special characters (&amp;) with Text formatting tags in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/special-characters-with-text-formatting-tags/m-p/1233057#M62387</link>
    <description>&lt;P&gt;Thanks, very helpful!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your "text formatting tags" link is broken now. I couldn't find this information about special characters in the official dynamic text documentation.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2022 00:25:24 GMT</pubDate>
    <dc:creator>CRose</dc:creator>
    <dc:date>2022-11-18T00:25:24Z</dc:date>
    <item>
      <title>special characters (&amp;) with Text formatting tags</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/special-characters-with-text-formatting-tags/m-p/539055#M23753</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 use text formatting tags to get different text sizes within one label. The Problem ist, that there is a "&amp;amp;" in some of my name-attributes. It seams, that these "&amp;amp;"-characters are interpreted as part of the formatting tags. Is there a possibility to tell ArcGIS Pro Framework, that the "&amp;amp;" should not be interpreted as part of the formatting tags?&lt;/P&gt;&lt;P&gt;(It would not be a problem to write a exclusion-tag into my name-attribute field, since I only use them for labeling.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Label Expression is:&lt;/P&gt;&lt;P&gt;$feature.NAME + "\n" + "&amp;lt;FNT size= '12'&amp;gt;" +"(" +&amp;nbsp; $feature.NUMBER + " TEXT)" + "&amp;lt;/FNT&amp;gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$feature.name containes the "&amp;amp;" character in some cases. In these cases the Lebel in the maps is:&lt;/P&gt;&lt;P&gt;"NAME" &amp;lt;FNT size='12'&amp;gt;(NUMBER TEXT)&amp;lt;\FNT&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FNT size='12'&amp;gt;(NUMBER TEXT)&amp;lt;\FNT&amp;gt;&lt;/P&gt;&lt;P&gt;So the tags are part of the shown labels and the part which has the Lebels appears two times there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know a solution or a hint, what I can try to solve the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2020 10:42:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/special-characters-with-text-formatting-tags/m-p/539055#M23753</guid>
      <dc:creator>DavidHofmann</dc:creator>
      <dc:date>2020-08-17T10:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: special characters (&amp;) with Text formatting tags</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/special-characters-with-text-formatting-tags/m-p/539056#M23754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the &lt;A _jive_internal="true" href="https://community.esri.com/thread/Text formatting tags—ArcGIS Pro | Documentation" target="_blank"&gt;Text Formatting tags&lt;/A&gt; documentation page, it mentions special characters:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The ampersand (&amp;amp;) and angle bracket (&amp;lt;) are special characters and are not valid in your text if formatting tags are used. Use the equivalent character codes &lt;SPAN class=""&gt;&amp;amp;amp;&lt;/SPAN&gt; and &lt;SPAN class=""&gt;&amp;amp;lt;&lt;/SPAN&gt; instead.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below that, it also shows to to replace them in your code&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;If you have special characters embedded in the values of the label field, you can replace them dynamically using a simple label script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Label Expression - Arcade&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE class=""&gt;"&amp;lt;BOL&amp;gt;" + replace($feature.Notes, "&amp;amp;", "&amp;amp;amp;") + "&amp;lt;/BOL&amp;gt;"&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Label Expression - VBScript&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE class=""&gt;Function FindLabel ([LABELFIELD])
   NewString = Replace([LABELFIELD],"&amp;amp;","&amp;amp;amp;")
   FindLabel = "&amp;lt;ITA&amp;gt;" &amp;amp; NewString &amp;amp; "&amp;lt;/ITA&amp;gt;"
End Function&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:36:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/special-characters-with-text-formatting-tags/m-p/539056#M23754</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-12T16:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: special characters (&amp;) with Text formatting tags</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/special-characters-with-text-formatting-tags/m-p/539057#M23755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;thank you so much, your solution works perfectly!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2020 14:31:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/special-characters-with-text-formatting-tags/m-p/539057#M23755</guid>
      <dc:creator>DavidHofmann</dc:creator>
      <dc:date>2020-08-17T14:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: special characters (&amp;) with Text formatting tags</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/special-characters-with-text-formatting-tags/m-p/1233057#M62387</link>
      <description>&lt;P&gt;Thanks, very helpful!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your "text formatting tags" link is broken now. I couldn't find this information about special characters in the official dynamic text documentation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 00:25:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/special-characters-with-text-formatting-tags/m-p/1233057#M62387</guid>
      <dc:creator>CRose</dc:creator>
      <dc:date>2022-11-18T00:25:24Z</dc:date>
    </item>
  </channel>
</rss>

