# File lib/math_ml/util.rb, line 22 def self.escapeXML(s, br=false) r = s.gsub(/[<>&"']/){|m| "&#{ESCAPES[m]};"} br ? r.gsub(/\n/, "<br />\n") : r end