Convert String to HTML widget Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2019 09:16 AM
I want to display Description in HTML... The description is in point wise, when displayed the contents are not coming in next line
<div class="content">
<p ng-bind-html="c.data.textP1"></p>
</div>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2019 09:26 AM
Hi,
In your controller pass in "$sce" to the function:
function($sce) {
var c = this;
c.data.textP1 = $sce.parseAsHtml( <your input value> );
}
And then in your HTML use:
<div ng-bind-html="c.data.textP1"></div>
-satheesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2019 09:38 AM
is there anything I can do with gr.description in server script...since I'm appending those values with bunch of others

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2019 09:51 AM
share your server and client code to make necessary chnages in your code

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2019 10:16 AM