# File nqxml/utils.rb, line 24 def NQXML.replaceCharacterRefs(str) return nil if str.nil? copy = str.gsub(/&\(\+);/n) { $1.to_i.chr } return copy.gsub(/&\x([0-9a-f]+);/ni) { $1.hex.chr } end