deface
deface copied to clipboard
Problem with html entities and slim
Hey! I'm using deface 1.2 on spree 3.2.
I have a translation key in my locale file. Let's say:
it:
spree:
the_tree: L'albero
When I use this in my defaced partial:
h1= Spree::t(:the_tree)
I got this in my browser:
L'albero
As you can see, the single quote has been converted to its respective html entities. But my browser does not render the single quote. Instead it prints ' literally.
This does not happen when I use ERB instead of SLIM.
This does not happen if I use == Spree::t(:the_tree).
This does not happen if I do not use Spree::t like this:
h1 L'albero
Is it a bug? Am I doing something wrong? Should I use == for every Spree::t call?
Thank you :)