haml/haml — pull request #721 by patrik (2013-11-02 17:48:12+00:00)
Title: escape_once does not work on frozen strings

The current implementation of escape_once does not work on frozen strings. Apart from the fact that it is not obvious from the name that the method modifies the string passed as an argument, the behavior differs from ERB::Util.html_escape_once for which it acts as a replacement in Rails.

That way, code that works with ActionView::Helpers::TagHelper#escape_once when using ERB does no longer work when a project uses Haml.

Thanks for creating and maintaining Haml. We use it all the time and love it!