Does anyone know why html2haml is converting characters inside my
RHTML tags to HTML entities?

That is,
  <%= in_place_editor_field :publication, "publication", {}, :rows =>
1 %>
becomes
  = in_place_editor_field :publication, &quot;publication&quot;,
{}, :rows =&gt; 1

Have I just missed something completely obvious here?

I was originally using stable (2.0.3) and then I tried the current
trunk (2.1.0) as well, but no luck.  I'm new to HAML (and to Rails)
and using it for a large project.  I have a bunch of legacy RHTMLs
that I'm going to be converting to HAML over the next few weeks.
Assuming this actually is a bug, is there a patch for floating
around?  If not, is there someone who understands the nature of the
problem, and can toss me a clue?  I'd be happy to work toward a patch
if one is needed.

For now, I wound up turning entity escaping off completely by editing
line 183 of lib/haml/html.rb (2.1.0)

I changed
  "<haml:#{tag}>#{CGI.escapeHTML($1)}</haml:#{tag}>"
to
  "<haml:#{tag}>#{$1}</haml:#{tag}>"

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to