<?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 tags from Metadata description field in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1190427#M33452</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/599362"&gt;@MCameron&lt;/a&gt;&amp;nbsp;this is from the layer metadata in Pro, being viewed in the REST on the web.&lt;/P&gt;&lt;P&gt;So in this example, i have a layer in my service with the following metadata:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David_Brooks_0-1657209234707.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45448iC4E934F6CFB2DDE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David_Brooks_0-1657209234707.png" alt="David_Brooks_0-1657209234707.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We want the metadata for our individual layers to persist through to Enterprise, but the only way to view the Description for the individual layers is in the REST (unless someone can correct me otherwise?).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David_Brooks_1-1657209378880.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45449iB0FCB0DA009162F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David_Brooks_1-1657209378880.png" alt="David_Brooks_1-1657209378880.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Obviously it's not easy reading the text in the description when it's wrapped in HTML tags. So is there a better way of viewing the metadata on the individual layers? or a way of making the description field plain text (does that remove the html tags?)&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2022 15:57:33 GMT</pubDate>
    <dc:creator>David_Brooks</dc:creator>
    <dc:date>2022-07-07T15:57:33Z</dc:date>
    <item>
      <title>How to remove HTML tags from Metadata description field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1189922#M33445</link>
      <description>&lt;P&gt;When adding a description to a layer's metadata and publishing as a Map Service to Portal, the rest endpoint shows the HTML tags for the Description and makes it very difficult to read. Is there a way of removing these tags or converting the description field to a simple plain text box? This isn't the case for the summary field.&lt;/P&gt;&lt;P&gt;Otherwise, is there a better way of viewing individual layer metadata for a multi-layer map service other than via the rest endpoint?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 15:33:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1189922#M33445</guid>
      <dc:creator>David_Brooks</dc:creator>
      <dc:date>2022-07-06T15:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove HTML tags from Metadata description field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1190283#M33447</link>
      <description>&lt;P&gt;Hi David,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could I ask if&amp;nbsp;the behaviour is that the published service details, when viewing the REST API of the service,&amp;nbsp; shows the metadata description as having HTML tags, rather than the text that has been typed into the field in ArcGIS Pro before publishing?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If so, could I also ask if the service was published using ArcGIS Pro or ArcMap? And what version of ArcGIS Enterprise are you using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a known bug for this issue that occurs when publishing service from ArcGIS Pro to ArcGIS Enterprise, and the workaround suggested is to&amp;nbsp;&lt;SPAN&gt;remove the text in the description field before publishing the service, and complete the description from the item details page in ArcGIS Portal.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 09:18:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1190283#M33447</guid>
      <dc:creator>MCameron</dc:creator>
      <dc:date>2022-07-07T09:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove HTML tags from Metadata description field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1190427#M33452</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/599362"&gt;@MCameron&lt;/a&gt;&amp;nbsp;this is from the layer metadata in Pro, being viewed in the REST on the web.&lt;/P&gt;&lt;P&gt;So in this example, i have a layer in my service with the following metadata:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David_Brooks_0-1657209234707.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45448iC4E934F6CFB2DDE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David_Brooks_0-1657209234707.png" alt="David_Brooks_0-1657209234707.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We want the metadata for our individual layers to persist through to Enterprise, but the only way to view the Description for the individual layers is in the REST (unless someone can correct me otherwise?).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David_Brooks_1-1657209378880.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45449iB0FCB0DA009162F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David_Brooks_1-1657209378880.png" alt="David_Brooks_1-1657209378880.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Obviously it's not easy reading the text in the description when it's wrapped in HTML tags. So is there a better way of viewing the metadata on the individual layers? or a way of making the description field plain text (does that remove the html tags?)&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 15:57:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1190427#M33452</guid>
      <dc:creator>David_Brooks</dc:creator>
      <dc:date>2022-07-07T15:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove HTML tags from Metadata description field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1207104#M33865</link>
      <description>&lt;P&gt;We are also encounting this problem and haven't found a way to remove it. It's a problematic issue that is causing a mess in the GetCapabilities info of the hosted service. The Enterprise portal is not involved in this.&lt;/P&gt;&lt;P&gt;&amp;lt;Abstract&amp;gt;&lt;BR /&gt;&amp;lt;![CDATA[ &amp;lt;DIV STYLE="text-align:Left;font-size:12pt"&amp;gt;&amp;lt;P&amp;gt;&amp;lt;SPAN&amp;gt;&lt;/P&gt;&lt;P&gt;The service was hosted from ArcGIS Pro v. 3.0.1 to our ArcGIS Server Site through an ArcGIS Server Connection (.ags).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-08-29_09-54-40.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49647i7243B52715B8AE19/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-08-29_09-54-40.png" alt="2022-08-29_09-54-40.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-08-29_08-53-16.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49646i67370B3BC9551A45/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-08-29_08-53-16.png" alt="2022-08-29_08-53-16.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 08:01:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1207104#M33865</guid>
      <dc:creator>cbp-geus</dc:creator>
      <dc:date>2022-08-29T08:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove HTML tags from Metadata description field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1207136#M33866</link>
      <description>&lt;P&gt;We have found an workaround for this issue which is unfortunately time consuming as every layer has to be updated with this method.&lt;/P&gt;&lt;P&gt;The workaround is to select the affected map or layer in the Catalog View and do an &lt;STRONG&gt;Export&lt;/STRONG&gt; of the metadata to an xml file. We used the &lt;STRONG&gt;FGDC CSDGM&lt;/STRONG&gt; format. Then do an &lt;STRONG&gt;Import&lt;/STRONG&gt; for the same affected map / layer with the exported file and republish the service.&lt;/P&gt;&lt;P&gt;After this we could confirm that the issue with the HTML TAG disappeared from the map service.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-08-29_11-51-29.png" style="width: 333px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49656i5D232BE97587BA61/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2022-08-29_11-51-29.png" alt="2022-08-29_11-51-29.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 10:30:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1207136#M33866</guid>
      <dc:creator>cbp-geus</dc:creator>
      <dc:date>2022-08-29T10:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove HTML tags from Metadata description field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1209830#M33946</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/217239"&gt;@cbp-geus&lt;/a&gt;&amp;nbsp;this is a great workaround, which i've just tried to good effect. Next job is to get this working pythonically to loop through all datasets prior to publishing.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 13:02:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1209830#M33946</guid>
      <dc:creator>David_Brooks</dc:creator>
      <dc:date>2022-09-06T13:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove HTML tags from Metadata description field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1209831#M33947</link>
      <description>&lt;P&gt;Glad to hear this is also working for you. We are also investigating a way to make this '&lt;SPAN&gt;pythonically' in some way. Let's hope Esri might have a solution to this.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 13:01:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1209831#M33947</guid>
      <dc:creator>cbp-geus</dc:creator>
      <dc:date>2022-09-06T13:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove HTML tags from Metadata description field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1211511#M33971</link>
      <description>&lt;P&gt;Here you go:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;import arcpy, os
from arcpy import metadata as md
dataset = arcpy.GetParameterAsText(0)
   
src_item_md = md.Metadata(dataset)
outXML = r'C:\\Temp\Metadata.xml'
src_item_md.exportMetadata(outXML)
 
# Import the standard-format metadata content to the target item
if not src_item_md.isReadOnly:
    src_item_md.importMetadata(outXML)
    src_item_md.save()
arcpy.management.Delete(outXML)
arcpy.AddMessage("Finished.")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 09:02:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1211511#M33971</guid>
      <dc:creator>David_Brooks</dc:creator>
      <dc:date>2022-09-12T09:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove HTML tags from Metadata description field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1211512#M33972</link>
      <description>&lt;P&gt;Brilliant! Thanks for it &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/415930"&gt;@David_Brooks&lt;/a&gt;. I'll try it out one day&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 09:05:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1211512#M33972</guid>
      <dc:creator>cbp-geus</dc:creator>
      <dc:date>2022-09-12T09:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove HTML tags from Metadata description field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1237857#M34730</link>
      <description>&lt;P&gt;Thank you for this information. I was able to&amp;nbsp;add a description to a layer's metadata and publish it as a Map Service to Portal without HTML tags. Unfortunately now there is only a description on the service page. When I click on the service layer to look at the layer metadata, the description is blank. Can you let me know what might have happened?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 16:46:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1237857#M34730</guid>
      <dc:creator>CodyGarcia2</dc:creator>
      <dc:date>2022-12-05T16:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove HTML tags from Metadata description field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1253079#M35006</link>
      <description>&lt;P&gt;So the tags are a bug?&amp;nbsp; Any fix in sight?&amp;nbsp; It has broken our Javascript API internal mapping application which builds on the description data a HTML link - so having rogue HTML in the description has just broken things big time.&lt;/P&gt;&lt;P&gt;I note that layers imported from ArcGIS MXD are ok as we only noticed it when we added new ones.&amp;nbsp; I'll be logging an Esri(UK) call so we have visibility of this an know when it is fixed.&lt;/P&gt;&lt;P&gt;I would strongly suggest that this topic isn't marked "Solved" as the work around seems to be geared up for the meta data stored with the layer, not added in the Project.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 21:24:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1253079#M35006</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2023-01-30T21:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove HTML tags from Metadata description field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1253337#M35011</link>
      <description>&lt;P&gt;For info this is Esri&amp;nbsp;BUG-000129415&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've workaround the issue in my code with a very simple js function that strips html out of a string.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 15:15:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1253337#M35011</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2023-01-31T15:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove HTML tags from Metadata description field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1375623#M38393</link>
      <description>&lt;P&gt;This workaround does remove the html tags, however I noticed that the tags that were in the Item Description section are replaced with whatever was in the Place Keywords in the Topics &amp;amp; Keywords section.&amp;nbsp; Is there way to export/import the metadata while leaving the tags intact?&amp;nbsp; There doesn't seem to be an option to export metadata as ArcGIS format, only "Save As" Arcgis format.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 19:54:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1375623#M38393</guid>
      <dc:creator>Jamie_Leitch_CNF</dc:creator>
      <dc:date>2024-01-29T19:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove HTML tags from Metadata description field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1473222#M39507</link>
      <description>&lt;P&gt;We have hundreds of services... maybe a thousand even... really don't want to need any workarounds. Anyone know if this is still an issue in Enterprise 11.x?&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 21:18:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1473222#M39507</guid>
      <dc:creator>BrittanyBurson</dc:creator>
      <dc:date>2024-05-15T21:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove HTML tags from Metadata description field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1656858#M43215</link>
      <description>&lt;P&gt;I upgraded to 11.3 this summer, and this is still happening to me, although only when I bulk deploy via a script. My script leverages &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/mapservicedraft-class.htm" target="_self"&gt;MapServiceDraft&lt;/A&gt;&amp;nbsp;and as it says near the top of that page:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;If metadata properties (&lt;SPAN class=""&gt;credits&lt;/SPAN&gt;, &lt;SPAN class=""&gt;description&lt;/SPAN&gt;, &lt;SPAN class=""&gt;summary&lt;/SPAN&gt;, &lt;SPAN class=""&gt;tags&lt;/SPAN&gt;, and &lt;SPAN class=""&gt;useLimitations&lt;/SPAN&gt;) are not set or consist of empty strings, the map service will source metadata from the map.&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Which, seems strange to me, because the default option when overwriting from Pro is "Use the item description from the service".&lt;BR /&gt;&lt;BR /&gt;I'm lucky I only have about 25 services, so it didn't take me long to go into Manager and manually remove the HTML tags from any section within the "Item Description" tab. And now if I keep the default when overwriting from Pro, I'll be fine. But it's kind of annoying to think that in a DR, bulk deployment scenario, I'm going to re-introduce those HTML tags. It'd be great to see this bug addressed either via future Server and/or Pro releases.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 19:57:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-remove-html-tags-from-metadata-description/m-p/1656858#M43215</guid>
      <dc:creator>MikeDolbow</dc:creator>
      <dc:date>2025-10-09T19:57:02Z</dc:date>
    </item>
  </channel>
</rss>

