How is your experience with the OutSystems Community?
11
Views
3
Comments
HTML TAG

I am having an output like this:
"<p><strong>this</strong> is for <span style=""background-color: rgb(255, 255, 0);"">Group</span> Inputter d</p>" 

I need to display it in an Expression while preserving the bold formatting for "this" and the yellow background color for "Group". How can I achieve this in OutSystems Reactive?

UserImage.jpg
Dhananjay Sharma

Hi Deepak, you can use InjectHTML forge component to inject HTML code into the pages. Please find below link for the same : https://www.outsystems.com/forge/component-overview/7239/injecthtml-o11

2024-05-02 09-49-04
Murali Manoharan V
Champion
AI Generated

Hi Deepak

To display HTML content with styles from a REST API on your OutSystems screen, the method depends on whether you are using a Traditional Web or Reactive Web/Mobile application.

Traditional Web Applications

If you are working in a Traditional Web app, use the built-in Expression widget: 

  • Drag and drop an Expression widget onto your screen.
  • Bind the expression to your REST API output text variable.
  • Set the Escape Content property of the Expression to No.
  • OutSystems will render the HTML tags and inline styles directly on the page. 

Reactive Web and Mobile Applications

Reactive Web and Mobile apps do not have an "Escape Content" property on standard expressions.

Use a Forge Component (Recommended)

  • Install the InjectHTML component from the OutSystems Forge.
  • Drag and drop the InjectHTML web block onto your screen.
  • Pass your REST API HTML string into the block's input parameter.

ODC Applications

Use forge component Inject HTML

Hope it helps.

Regards

Murali

This answer was AI-generated. Please read it carefully and use the forums for clarifications
2025-12-29 06-17-15
Deepak Raj M

Thank you all for your suggestion, I have got the expected output

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.