Select to view content in your preferred language

<input> tag not properly working in custom HTML code

754
2
Jump to solution
08-07-2023 03:55 PM
hoshijun
Emerging Contributor

I have been attempting to add various custom HTML codes in my Hub, and I've noticed that the <input> tag gets ignored, thus resulting in the code not working properly. 

This has been the case for codes such as a mobile-friendly dropdown header and a particular accordion style I wanted to implement.

Is the <input> tag intentionally taken out? Does anyone have any suggestions for workarounds? Thanks!

Tags (3)
1 Solution

Accepted Solutions
KlaraSchmitt
Esri Regular Contributor

Hi @hoshijun,

Yes, we do intentionally strip out input tags as they can be used in a way that could cause security risks. Our application does integrate with the Calcite Design System if you want to try using their accordions: https://developers.arcgis.com/calcite-design-system/components/accordion/ 

View solution in original post

0 Kudos
2 Replies
KlaraSchmitt
Esri Regular Contributor

Hi @hoshijun,

Yes, we do intentionally strip out input tags as they can be used in a way that could cause security risks. Our application does integrate with the Calcite Design System if you want to try using their accordions: https://developers.arcgis.com/calcite-design-system/components/accordion/ 

0 Kudos
JohannesLindner
MVP Frequent Contributor

This tag should probably also be escaped correctly in the Community feed...

JohannesLindner_0-1691519284518.png

@JesseCloutier 

 


Have a great day!
Johannes
0 Kudos