YW, That's what for we have created `<juicy-html>` http://juicy.github.io/juicy-html/examples/template_inline.html We do not use `injectBoundHTML` as we have created custom element long before it was provided, and right now we are not sure how it will evolve with Polymer >= 0.8, plus we would like to make it library agnostic.
W dniu niedziela, 19 kwietnia 2015 06:18:11 UTC+2 użytkownik Peng Kim napisał: > > sure,thanks for recommendations,but my real problem is that polymer > escapes any html when data-biding for security reason,i should use > this.injectBoundHTML(e.detail.response[0].content, > this.$.content); > > On Sunday, April 19, 2015 at 4:50:51 AM UTC+8, Tomek W wrote: >> >> You can try https://github.com/Juicy/juicy-markdown to parse and render >> markdown: >> <juicy-markdown value="{{markdowncontent}}"></juicy-markdown> >> >> Or https://github.com/Juicy/juicy-html to render already parsed markdown >> HTML: >> <juicy-html content="{{htmlcontent}}"></juicy-html> >> >> Best regards, >> Tomek > > Follow Polymer on Google+: plus.google.com/107187849809354688692 --- You received this message because you are subscribed to the Google Groups "Polymer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/40c07276-b2f8-4ecb-bea0-97cadeda178c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
