Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with html entities and slim #173

Open
delphaber opened this issue Jun 27, 2017 · 0 comments
Open

Problem with html entities and slim #173

delphaber opened this issue Jun 27, 2017 · 0 comments

Comments

@delphaber
Copy link

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 :)

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

No branches or pull requests

1 participant