Permalink
Browse files

Fixes #53

  • Loading branch information...
1 parent 7627161 commit 073521104834afa07da10598cf9723c376024dce @costa committed Dec 8, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/haml.js
  2. +1 −1 test/comments.haml
  3. +1 −1 test/comments.html
View
@@ -334,7 +334,7 @@ var Haml;
process: function () {
this.contents.unshift(this.matches[2]);
- return '"<!--'+this.contents.join('\\n')+'-->"';
+ return '"<!--'+this.contents.join('\\n').replace(/\"/g, '\\"')+'-->"';
}
},
View
@@ -11,4 +11,4 @@
but not in the final HTML
*/
/ This should be a Haml comment
- and it should be in the resulting html
+ and it should be in the resulting html (even with "double quotes")
View
@@ -1,2 +1,2 @@
<div class="display-this"></div>2<!--This should be a Haml comment
-and it should be in the resulting html-->
+and it should be in the resulting html (even with "double quotes")-->

0 comments on commit 0735211

Please sign in to comment.