'Row details with html tags in datatables

I get stuck into a problem. I use summernote and datatables to store some comments in DB.

I want to display this text in "Row details" functionality(https://datatables.net/examples/server_side/row_details.html).

How to render the HTML text?

For example I see it like this in the datatable:

<p><b>The child row can contain any data you wish, including links, images, inner tables etc.</b></p>

I Expected this:

The child row can contain any data you wish, including links, images, inner tables etc.

I used to insert a div with ID and then:

$( "ID" ).html( "<p><b>The child row can contain any data you wish, including links, images, inner tables etc.</b></p>" );

But with no success. I there any way to do it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source