I have a JSON file containing data that I want to display. The work is being done completely in HTML, which picks certain fields to display and writes them to the browser. I have no control over the fields as they are collected automatically from an external source and we want to keep them as original as possible.
I've encountered an issue where some fields are written in HTML, so the string might say something like:
"<p>Foo <strong><Bar></strong</p>"
Is there a way to have HTML when it encounters such a string, display it not as raw characters, but as the correct HTML output? I know which fields will and won't have tags like this, so I don't need to test for the tags. I only need a way to display the tags correctly for a variable string.