| Numéro d’ID de bogue |
BUG-000148351 |
| Envoi | April 7, 2022 |
| Dernière modification | June 5, 2024 |
| S’applique à | ArcGIS API for JavaScript |
| Version trouvée | 4.23 |
| Système d’exploitation | Windows OS |
| Version du système d’exploitation | 10.0 64 Bit |
| Statut | Will Not Be Addressed
L’équipe de développement a examiné le problème ou la demande et a décidé qu’ils ne seraient pas traités. Pour d’autres explications, reportez-vous à la section Informations supplémentaires correspondant au problème.
|
Informations supplémentaires
This occurs due to the HTML sanitizer sanitizing and escaping strings, according to the ArcGIS Online supported HTML specification: https://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm.
Formatting the HTML content within a function to set the PopupTemplate content fixes the problem. See the following code sample: https://codepen.io/laurenb14/pen/wvpELgw?editors=1000.
Refer to this blog for more details on the HTML sanitizer: https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/using-html-with-popups-in-the-arcgis-api-for-javascript/.
Étapes pour reproduire
ID de bogue: BUG-000148351
Logiciel:
- ArcGIS API for JavaScript