Symptom
When saving Raw HTML code to a custom tile in Manage Home Page, the HTML tag is removed by the system when saving
Environment
SAP SuccessFactors HCM Suite
Reproducing the Issue
- Go to Application Security Feature Settings
- Enable option "Sanitize all rich text inputs" and Save
- Go to Manage Home Page
- Create a custom tile (Type = Static, Target = Popover, RAW HTML)
- Add you code and save
- Open the tile setup again and notice the <script> tags were removed when saved
Cause
Expected behavior when the option Company System and Logo Settings > "Sanitize all rich text inputs" is enabled.
Resolution
- Disable Company System and Logo Settings > "Sanitize all rich text inputs" > Save
- Add your HMTL to the custom tile setup and save your tile
- If the option is required to be on - you can then go back and enable the option again, but keep that in mind if you need to edit the tile or add other html code to another tile in the future.
Keywords
Raw HTML, HTML Tags, HTML, Custom Tile, Application Security Feature Settings, sanitise all rich text inputs, sanitize all rich text inputs , KBA , LOD-SF-PLT-TIL , Custom Tile/Card Issues , How To
Product
SAP SuccessFactors HXM Core 2105