How to read HTML content from custom table in Widget

Ambika  Sekar
Tera Contributor

Hello All,

 

I have a custom Table in which i have HTML field, where i'm storing Some HTML data in tabular format..

I need to show this in my Catalog Form in Service Portal.

I've created a widget and calling the HTML content in the below way..However, its not displaying anything on the Catalog Form.

when i check the logs it did read the content..Not sure why it is not visible on the form..Can someone help?

AmbikaSekar_0-1675056508471.png

 

3 REPLIES 3

Upender Kumar
Mega Sage

Have you checked in preview

UpenderKumar_0-1675615637095.png

 

Community Alums
Not applicable

Try with ng-bind-html="data.htmlContent"

In addition to using the ng-bind-html directive, one needs to "authorize" the html in the client controller using the $sce service.