Class | String |
In: |
lib/nukumi2/vendor/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 lib/nukumi2/vendor/tangerine.rb, line 358 358: def xml_escape 359: self.gsub("&", "&"). 360: gsub('"', """). 361: gsub('>', ">"). 362: gsub('<', "<"). 363: gsub("'", "'") 364: end