You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Rails number_to_currency helper returns currency symbols as HTML entities. When exporting an HTML report to CSV, we would like to use the UTF-8 symbol instead.
Use Case
The Rails
number_to_currency
helper returns currency symbols as HTML entities. When exporting an HTML report to CSV, we would like to use the UTF-8 symbol instead.Versions
Steps to Reproduce
New rails app:
In console:
It decodes the way I would want when not given a SafeBuffer, but removes the entity entirely when given a SafeBuffer.
Work around
Instead of using a nice generic solution like HTMLEntities, I end up using a few gsubs to get the job done:
(which works, but then this list needs to be maintained).
The text was updated successfully, but these errors were encountered: