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

Single quotes in attribute values are converted to double quotes #58

Closed
nfm opened this issue Jul 26, 2012 · 2 comments
Closed

Single quotes in attribute values are converted to double quotes #58

nfm opened this issue Jul 26, 2012 · 2 comments

Comments

@nfm
Copy link
Collaborator

nfm commented Jul 26, 2012

In the following template, the single quote in the title attribute is converted into a double quote:

%a{ href: '#', title: "This shouldn't be a double quote" } But it is

This produces the following HTML:

<a href='#' title="This shouldn&quot;t be a double quote">But it is</a>

As a result, the title is displayed at:

This shouldn"t be a double quote

Instead of converting ' to &quot;, it should be converted to &#39; or &apos;.

@netzpirat
Copy link
Collaborator

Thanks for reporting this. I'll look into it asap.

@netzpirat
Copy link
Collaborator

This has been fixed in Haml-Coffee, expect a new release soon.

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

2 participants