Unwanted html tags being displayed - HTML/ Server side code on cloned widget

Rocky5
Kilo Sage

Hello Guys,

I wanted to display 'Details' field value on the 'Planned Maintenance' widget. For that I have cloned the ootb 'Planned Maintenance' widget and added the html/server side code highlighted below. But, When looking at widget I am seeing some unwanted <p> </p> tags like below. How can I remove those unwanted <p> tags?

 

Custom code:

 

Rocky5_0-1679402184798.png

 

 

Unwanted <p> </p> tags:

 

Rocky5_1-1679402184720.png

 

 

Thanks,

Rocky.

1 ACCEPTED SOLUTION

Muhammad Khan
Mega Sage
Mega Sage

The tags are appearing because Details is an HTML field. To remove those tags, try with below statement in HTML of your widget.

 

<div ng-bind-html="c.data.details"><div/>

View solution in original post

1 REPLY 1

Muhammad Khan
Mega Sage
Mega Sage

The tags are appearing because Details is an HTML field. To remove those tags, try with below statement in HTML of your widget.

 

<div ng-bind-html="c.data.details"><div/>