In: |
tangerine.rb
|
Parent: | Object |
Return a copy of the string escaped suitable for inclusion in XML. By default, all values will be escaped suitable for inclusion in a XML document (< gets <, > gets >, etc…).
# File tangerine.rb, line 316 316: def xml_escape 317: self.gsub("&", "&"). 318: gsub('"', """). 319: gsub('>', ">"). 320: gsub('<', "<"). 321: gsub("'", "'") 322: end