For some reason html escaping isn’t working in my Rails application. Even if I write something like
<%=h '©äö' %>
it isn’t converting any of the characters to HTML entities.
I have no clue what the could be. It worked always fine and now just suddenly it don’t.
Any ideas?
Google sitemap requires fully escaped URLs, so in this case you need to escape all special and international characters.
This htmlentities library does that for you.
I even wrote a little wrapper in the
application_helper.rb: