Unwanted <p> tags being displayed - HTML & Server Script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2023 05:32 AM
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:
Unwanted <p> </p> tags:
Thanks,
Ben.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2023 06:08 AM
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/>