Jason Spick
Jason Spick

Reputation: 6088

How do I render HTML in polymer that is retrieved from json?

When I initialize my app, I grab json file that contains all the content. Some of the content contains html markup. When rendered out through the template:

{{question.text}}

it shows the html as literal a string.

How can I get this to display as html?

Upvotes: 1

Views: 640

Answers (1)

zdarsky.peter
zdarsky.peter

Reputation: 6257

There is already written an element for this. Juicy html should be able to do it

Upvotes: 1

Related Questions