-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Variables with html tags inside *.mjml.erb displayed as raw text in email body #45
Comments
@jitinmaher could you try naming your file |
Hey @sighmon thanks for your reply. I tried the following things but none worked: 1)- Changed the file name to have extension
2)- Changed the file name to have extension
|
@jitinmaher Hmmmm weird... could you try setting: # config/initializers/mjml.rb
Mjml.setup do |config|
config.template_language = :erb # :erb (default), :slim, :haml, or any other you are using
config.raise_render_exception = true
end If you'd like to build a sample project showing your problem and upload it to github, I can help debug further. |
we have the same issue. |
Do you want to request a feature or report a bug?
Bug
Issue description
We recently upgraded our package
mjml-rails
from2.4.1
to4.2.4
andmjml
npm dependency from3.3.3
to4.2.0
. We have a functiondoSomeProcessingWithText
which acceptsname
variable, the variable is supposed to be bold so its wrapped with<strong></strong>
attribute. With the latest upgrade the output email body doesn't parse tag as html rather it displays it as raw text.Code snippet
What is the current behavior?
<strong>JOHN</strong> Liked your post
What is the expected behavior?
JOHN Liked your post ( notice that JOHN is bold here )
The text was updated successfully, but these errors were encountered: