From: Volkmar Schulz Date: 2009-07-05T07:12:47+09:00 Subject: [ruby-core:24140] [Feature #1724] Support for "&*uml;"-HTML-codes in ERB::Util.html_escape (solution included) Feature #1724: Support for "&*uml;"-HTML-codes in ERB::Util.html_escape (solution included) http://redmine.ruby-lang.org/issues/show/1724 Author: Volkmar Schulz Status: Open, Priority: Normal Certain language specific chars like the german "Umlaute" are represented in HTML with "ä" (��), "ü" (��) etc. Since ERB::Util.html_escape escapes the & to become "&" one cannot use these HTML codes. To work around this problem I modified ERB::Util.html_escape like this: def html_escape(s) s.to_s.gsub(/&(?!.uml)/, "&").gsub(/\"/, """).gsub(/>/, ">").gsub(/