We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From the HAML docs:
Currently, filters ignore the :escape_html option. This means that #{} interpolation within filters is never HTML-escaped.
Currently, in MtHaml, this...
:php $code = "var msg='hi';"; :javascript #{$code}
Results in:
<script type="text/javascript"> //<![CDATA[ var msg='hi'; //]]> </script>
It should be:
<script type="text/javascript"> //<![CDATA[ var msg='hi'; //]]> </script>
The text was updated successfully, but these errors were encountered:
As a workaround, you can do:
:php $code = "var msg='hi';"; %script(type="text/javascript") :plain // Other JS code :php echo $code; :plain // More JS code
Sorry, something went wrong.
No branches or pull requests
From the HAML docs:
Currently, in MtHaml, this...
Results in:
It should be:
The text was updated successfully, but these errors were encountered: