How To: Add HTML formatting to detailed item descriptions in Maps and Apps
ArcGIS for Local Government provides maps and apps that help implement GIS in a local government context, and a destination where users, partners, and the teams within Esri can collaborate.
The instructions provided describe how to add HTML formatting to detailed item descriptions in Maps and Apps.
By design, the detailed description for an item shown in the Maps and Apps application's gallery has its HTML formatting removed. The intention is to protect the application from malformed or malintentioned HTML. One can permit HTML formatting by deleting the function call that removes the formatting.
- Navigate to <installation folder> Application > MapsAndApps and open mapps.html in a text editor.
- In the mapps.html file, delete the function call that removes the HTML formatting by changing the following lineto
dojo.byId("detailsDialogDescription").innerHTML = textOnly(galleryItem.description);
dojo.byId("detailsDialogDescription").innerHTML = galleryItem.description;
- Save the changes.