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
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 :)
The text was updated successfully, but these errors were encountered:
Hey! I'm using deface 1.2 on spree 3.2.
I have a translation key in my locale file. Let's say:
When I use this in my defaced partial:
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 everySpree::t
call?Thank you :)
The text was updated successfully, but these errors were encountered: