Javascript – Treat parsed JSON as HTML instead of text (edited)
Consider this simple code below When I parse the content and get the "txt" with JSON.parse(e.data).choices[0].delta.content; then it works fine if it is plain text. However, there are some simple HTML tags in the response like <strong> etc. which don't…