samedi 21 avril 2018

Displaying summernote text in a html page

After saving the summernote code into my mongoDB, I would like to display it on another page using ejs, but this is what I get displayed inside my div tag:

"<h1>Summernote Example</h1><p>Example <u><b style="background-color: rgb(255, 255, 0);">text</b></u></p>"

Note that all I want is the html to be rendered and shown properly in my HTML page. I have tried to parse the HTML using jquery but it doesn't seem to work.

Any idea how I can achieve that?




Aucun commentaire:

Enregistrer un commentaire