-
-
Notifications
You must be signed in to change notification settings - Fork 571
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
Haml 5 is automatically escaping Angular code with quotes #1038
Comments
are you using any frameworks with this? |
experiencing something similar but I'm ahead of you version wise (going from Haml 5.1.2 to 5.2.0)... and it feels related to #1015 but not completely sure yet. It certainly involves apostrophes getting converted to - class_name = "requested-field {{= required ? 'required' : '' }}".html_safe |
@bigethan After some tests, it worked for me using # config/initializers/haml.rb
# See more options in the documentation: https://haml.info/docs/yardoc/Haml/Options.html
# Haml::Template.options[:escape_filter_interpolations] = false
Haml::Template.options[:escape_html] = false
Haml::Template.options[:escape_attrs] = false |
ah! nice, seems to be this commit then #1028 :-) thanks for the followup! |
Looks like it got solved! <3 |
to follow up, these configs didn't fix our issues with the change, we'll likely need to revisit how we're encoding things. |
I have the following Angular snippet:
Which works fine under Haml 4.
I've upgrade to Haml
5.1.2
, and now this is rendered as:I tried to configure an initializer do not escape stuff like this:
But I still have the same output.
The text was updated successfully, but these errors were encountered: