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

Prevent escaping strings? #27

Open
nejj opened this issue Feb 25, 2014 · 0 comments
Open

Prevent escaping strings? #27

nejj opened this issue Feb 25, 2014 · 0 comments

Comments

@nejj
Copy link

nejj commented Feb 25, 2014

Currently passing:

%link{rel : "stylesheet", type : "text/css", href : "/<%= grunt.config.get('pkg.name') %>.css"}

Results in:

<link rel="stylesheet" type="text/css" href="/&lt;%= grunt.config.get('pkg.name') %&gt;.css" />

Is there a way to prevent escaping so the final output so the final result looks more like:

<link rel="stylesheet" type="text/css" href="/<%= grunt.config.get('pkg.name') %>.css" />

Currently to achieve this functionality I have switched the html_escape functionality inside haml.js to just return the text, though I'm sure this is going to break tests and is a short term solution.

Thanks.

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