HOW TO

Add HTML formatting to detailed item descriptions in Maps and Apps

Last Published: April 25, 2020

Summary

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.

Procedure

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.

  1. Navigate to <installation folder> Application > MapsAndApps and open mapps.html in a text editor.
  2. In the mapps.html file, delete the function call that removes the HTML formatting by changing the following line

    Code:
    dojo.byId("detailsDialogDescription").innerHTML = textOnly(galleryItem.description);

    to

    Code:
    dojo.byId("detailsDialogDescription").innerHTML = galleryItem.description;

  3. Save the changes.

Article ID:000011583

Software:
  • ArcGIS for Local Government

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic