Filed an issue here: https://github.com/Polymer/polymer-dev/issues/107
On Wed, Oct 1, 2014 at 7:27 AM, Rob Dodson <[email protected]> wrote: > Hm, yeah I'm seeing this too.I created a jsbin to reproduce it: > http://jsbin.com/bucuqi/6/edit > > The console logs the correct array values, you see the apostrophe, but the > content doesn't display. > > On Wed, Oct 1, 2014 at 6:12 AM, <[email protected]> wrote: > >> I have json array (containing both apostrophe and quotes): >> [{"type":"error","head":"Chyba na serveru","body":"Data truncation: Out >> of range value for column 'price' at row 1"}] >> >> I want to give this array to custom element as attribute. So obvious way >> would be HTML code (xml escape): >> messages="[{"type":"error","head":"Chyba >> na serveru","body":"Data truncation: Out of range value >> for column 'price' at row 1"}]" >> But polymer won't parse this as array. If I don't escape value, it will >> break HTML code. >> >> Also html escape doesn't work: >> messages="[{"type":"error","head":"Chyba >> na serveru","body":"Data truncation: Out of range value >> for column 'price' at row 1"}]" >> >> Note this works fine: >> messages='[{"type":"error","head":"Chyba na serveru","body":"Data >> truncation: Out of range value for column price at row 1"}]' >> >> 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/11dcc477-f685-406e-bfef-4cde8361bf32%40googlegroups.com >> <https://groups.google.com/d/msgid/polymer-dev/11dcc477-f685-406e-bfef-4cde8361bf32%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > 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/CAJj5OwBsH3XwaHG4SfVUKjX04Ka0KqUDRTYusKw2%2BjBPhFQ_Xg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
