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="[{&#034;type&#034;:&#034;error&#034;,&#034;head&#034;:&#034;Chyba
> na serveru&#034;,&#034;body&#034;:&#034;Data truncation: Out of range value
> for column &#039;price&#039; at row 1&#034;}]"
> 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="[{&quot;type&quot;:&quot;error&quot;,&quot;head&quot;:&quot;Chyba
> na serveru&quot;,&quot;body&quot;:&quot;Data truncation: Out of range value
> for column 'price' at row 1&quot;}]"
>
> 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/CAJj5OwA8RpcSQ%3DKaLp0%2BDsfyKrBDsfLvfDZ2M8QWDMxc7Zx0bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to