Select to view content in your preferred language

Is there a list of supported HTML elements within a String field in a feature layer?

827
2
Jump to solution
08-01-2022 03:25 PM
RogerAsbury
Frequent Contributor

'cause if there is I can't find it. 😞

We have an online application based on the ArcGIS Online Crowd Source Reporter template. I've been given the task of syncing data between it and another application via their APIs. The other app provides a feature rich interface for creating/editing the descriptions, outputting its results in html. However, after a quick test, I've found that using the edit_features() method on a feature, something as simple as changing the string field Details to: <p>This is a paragraph</p> results in a stored string of <br />This is a paragraph<br />.

I'm not performing that change, so I assume something within the ArcGIS API is doing it, and that the <p> tag is off limits for some reason. If the <p> tag, which has been around since the dawn of HTML is not allowed, what else isn't? Or, if it's a shorter list... what is?

--
Roger Asbury
Analyst/Programmer - Fairbanks North Star Borough
0 Kudos
1 Solution

Accepted Solutions
JohnYaist1
Esri Contributor

Hi @RogerAsbury - See the document here.

Hopefully that helps. 

View solution in original post

0 Kudos
2 Replies
JohnYaist1
Esri Contributor

Hi @RogerAsbury - See the document here.

Hopefully that helps. 

0 Kudos
RogerAsbury
Frequent Contributor

Sorry I missed your post until now. That's an awesome list! Thanks much.

--
Roger Asbury
Analyst/Programmer - Fairbanks North Star Borough
0 Kudos