Can JavaScript render HTML code to the console?

I just wanted to know if a HTML code can be rendered in JavaScript console. I mean…

const htmlString = "<ul>
                     <li>Good</li>
                     <li>Bad</li>
                     <li>Medium</li>
                   </ul>";

can be converted to this in the console –

  • Good
  • Bad
  • Medium

I’m actually using this to convert the HTML code to a powerpoint using pptxGenjs. I’m using OutSystems for this. So, it saves the custom input box with editable items (list, bold, italics, …) as HTML in the database.