SAP Knowledge Base Article - Public

2637934 - Add HTML Tag Or Code In Text Fields

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.

  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="https://upload.wikimedia.org/wikipedia/commons/2/25/George_Washington_as_CIC_of_the_Continental_Army_bust.jpg" />
  8. 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