I\'m using polymer-jsonp to perform JSONP requests, but the response sometimes contains html.
For example, supposing that post.content is \"Foo&l
If you're sure it is what you want to do, just use innerHTML.
_renderHtml: function(html) {
this.$.dynamicHtmlContainer.innerHTML = html;
}
Or to dynamically add a shadow-dom child:
_renderHtml: function(html) {
var div = document.createElement('div');
div.innerHTML = html;
Polymer.dom(this).appendChild(div);
}
I think Polymer.dom is being removed in Polymer 2.0 though.