<?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 PopupTemplate Content strips HTML Data-* Attributes in 4.16 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-strips-html-data-attributes/m-p/355478#M32918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working with the ArcGIS JavaScript API version 4.13 and was able to build popup templates that included data attributes to work with the Semantic UI library for their Tab module (https://semantic-ui.com/modules/tab.html). I recently upgraded to version 4.16 and now the template is broken. Upon examining the html when rendered it strips key data-attributes for tabs (data-tab) prevent it from working. Is there a way to force explicit content and prevent the template from being modified in version 4.16 or if this expected going forward? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example (Click on the map to launch the popup)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Version 4.13 Working:&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/booshwa/pen/ExPJgRz" title="https://codepen.io/booshwa/pen/ExPJgRz"&gt;https://codepen.io/booshwa/pen/ExPJgRz&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Version 4.16 Broken:&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/booshwa/pen/qBbwaJB" title="https://codepen.io/booshwa/pen/qBbwaJB"&gt;https://codepen.io/booshwa/pen/qBbwaJB&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Jul 2020 00:41:14 GMT</pubDate>
    <dc:creator>BernardConrad</dc:creator>
    <dc:date>2020-07-26T00:41:14Z</dc:date>
    <item>
      <title>PopupTemplate Content strips HTML Data-* Attributes in 4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-strips-html-data-attributes/m-p/355478#M32918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working with the ArcGIS JavaScript API version 4.13 and was able to build popup templates that included data attributes to work with the Semantic UI library for their Tab module (https://semantic-ui.com/modules/tab.html). I recently upgraded to version 4.16 and now the template is broken. Upon examining the html when rendered it strips key data-attributes for tabs (data-tab) prevent it from working. Is there a way to force explicit content and prevent the template from being modified in version 4.16 or if this expected going forward? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example (Click on the map to launch the popup)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Version 4.13 Working:&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/booshwa/pen/ExPJgRz" title="https://codepen.io/booshwa/pen/ExPJgRz"&gt;https://codepen.io/booshwa/pen/ExPJgRz&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Version 4.16 Broken:&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/booshwa/pen/qBbwaJB" title="https://codepen.io/booshwa/pen/qBbwaJB"&gt;https://codepen.io/booshwa/pen/qBbwaJB&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jul 2020 00:41:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-strips-html-data-attributes/m-p/355478#M32918</guid>
      <dc:creator>BernardConrad</dc:creator>
      <dc:date>2020-07-26T00:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate Content strips HTML Data-* Attributes in 4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-strips-html-data-attributes/m-p/355479#M32919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There was a &lt;A href="https://developers.arcgis.com/javascript/latest/guide/4.14/index.html#breaking-changes"&gt;breaking change&lt;/A&gt; in 4.14 where HTML code will be sanitized&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The &lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FEsri%2Farcgis-html-sanitizer" rel="nofollow" target="_blank"&gt;HTML sanitizer&lt;/A&gt; was added to all widgets to sanitize and escape strings according to the &lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdoc.arcgis.com%2Fen%2Farcgis-online%2Freference%2Fsupported-html.htm" rel="nofollow" target="_blank"&gt;ArcGIS Online supported HTML specification&lt;/A&gt;. This can cause HTML set in &lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2Flatest%2Fapi-reference%2Fesri-PopupTemplate.html%23content" rel="nofollow" target="_blank"&gt;PopupTemplate.content&lt;/A&gt; or in other widgets to be removed.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at this blog that shows how to modify the popup's DOM directly&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/using-html-with-popups-in-the-arcgis-api-for-javascript/" title="https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/using-html-with-popups-in-the-arcgis-api-for-javascript/"&gt;Using HTML with Popups in the ArcGIS API for JavaScript&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 13:48:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-strips-html-data-attributes/m-p/355479#M32919</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2020-07-27T13:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate Content strips HTML Data-* Attributes in 4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-strips-html-data-attributes/m-p/355480#M32920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI - I answered the exact same question at&lt;BR /&gt;&amp;nbsp;&lt;A class="jivelink11" href="https://gis.stackexchange.com/questions/368729/popuptemplate-content-strips-html-data-attributes-in-arcgis-api-for-javascript/" title="https://gis.stackexchange.com/questions/368729/popuptemplate-content-strips-html-data-attributes-in-arcgis-api-for-javascript/"&gt;https://gis.stackexchange.com/questions/368729/popuptemplate-content-strips-html-data-attributes-in-arcgis-api-for-javascript/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pretty much the same answer, but a few hours later...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 00:32:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-strips-html-data-attributes/m-p/355480#M32920</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2020-07-28T00:32:12Z</dc:date>
    </item>
  </channel>
</rss>

