Abdul Diaz Abdul Diaz - 6 months ago 50
jQuery Question

Parse Javascript as HTML

I have tried everything. My code doesn't render as HTML, instead it is just raw text.

This is my code:


How do I fix this?


Did you mean to use html() as output?


Or like this with $.parseHTML which is to parse a string into an array of DOM nodes.

var html = $.parseHTML(quiz[currentquestion]['question']);