SAP Knowledge Base Article - Public

2637934 - Add HTML Tag Or Code In Text Fields


You want to add a HTML tag in a text field for e.g. display an image inside this field.


SAP Hybris Cloud for Customer

Reproducing the Issue

In this case we will use Accounts WoC as example.

  1. Go to Customers WOC
  2. Accounts
  3. Search for Account ID 123 (123 is an account in the list)
  4. Open it
  5. In Overview tab have a text field
  6. Click on Edit
  7. Add a HTML tag in this field e.g <img src="" />
  8. Nothing is showed


For security reasons the RichTextEditor applies a form of sanitization to the text entered in it so that no malicious text can be entered in it and only Allowlist texts/tags are allowed.


This is a system expected behavior.


HTML Tag; HTML; Image; Text Field Image; Picture , KBA , AP-RC-MOB-UIF , Responsive UI , Problem


SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions