Symptom
You want to add a HTML tag in a text field for e.g. display an image inside this field.
Environment
SAP Hybris Cloud for Customer
Reproducing the Issue
In this case we will use Accounts WoC as example.
- Go to Customers WOC
- Accounts
- Search for Account ID 123 (123 is an account in the list)
- Open it
- In Overview tab have a text field
- Click on Edit
- Add a HTML tag in this field e.g <img src="https://upload.wikimedia.org/wikipedia/commons/2/25/George_Washington_as_CIC_of_the_Continental_Army_bust.jpg" />
- Nothing is showed
Cause
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.
Resolution
This is a system expected behavior.
Keywords
HTML Tag; HTML; Image; Text Field Image; Picture , KBA , AP-RC-MOB-UIF , Responsive UI , Problem
Product
SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions