Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Currency   not working #38

Open
j15e opened this issue Jan 9, 2013 · 0 comments
Open

Currency   not working #38

j15e opened this issue Jan 9, 2013 · 0 comments

Comments

@j15e
Copy link

j15e commented Jan 9, 2013

My issue is with front-end output of currencies with non-blank spaces.

They appear with the "%&bsp" escaped in the browser due to JSON encoding issue and/or javascript manipulation issue.

I have try to fix it in #37, but it produces invalid JSON

Some currencies requires spacing like "10,00 $ CAD", but you don't want line breaks, so i18n number_to_currency format looks like "10,00%nbsp;$%nbsp;CA".

Links :

http://jfire.io/blog/2012/04/30/how-to-securely-bootstrap-json-in-a-rails-view/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant