SAP Knowledge Base Article - Public

3048344 - HTML tag is cleared on tiles

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

  1. Go to Application Security Feature Settings 
  2. Enable option "Sanitize all rich text inputs" and Save
  3. Go to Manage Home Page
  4. Create a custom tile (Type =  Static, Target = Popover, RAW HTML)
  5. Add you code and save
  6. 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