'money_format' in Shopify shop API sometimes returns '<'

Shopify Partner
162 2 25

Hi there,

I'm seeing an issue with a couple of stores where the Shopify API returns '<' instead of '$' for 'money_format'.

It only seems to affect a couple of stores, here's the Shopify API I'm talking about.

The Ruby code is something like:

@test.currency = @shop.money_format.strip[0]



Where strip is stripping any potential HTML tags and then [0] is just grabbing the first character. It works for 90% of stores just fine.

Has anyone else bumped into this issue? or know if there is a more reliable field to call?