# File lib/Borges/HTML/HtmlBuilder.rb, line 64 def encode_text(obj) encoded = "" obj.to_s.each_byte do |char| e = HTML_CHARACTERS[char] encoded << (e.nil? ? char.chr : e.to_s) end text(encoded) end