# File lib/itex_stringsupport.rb, line 2288 def to_utf8 self.gsub(/&([a-zA-Z0-9]+);/) {|m| $1.convert_to_utf8} # You might think this is faster, but it isn't # pieces = self.split(/&([a-zA-Z0-9]+);/) # 1.step(pieces.length-1, 2) {|i| pieces[i].convert_to_utf8} # pieces.join end