Class String
In: lib/nukumi2/vendor/tangerine.rb
Parent: Object

Methods

Public Instance methods

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 &lt;, > gets &gt;, etc…).

[Source]

     # File lib/nukumi2/vendor/tangerine.rb, line 358
358:   def xml_escape
359:     self.gsub("&", "&amp;").
360:       gsub('"', "&quot;").
361:       gsub('>', "&gt;").
362:       gsub('<', "&lt;").
363:       gsub("'", "&apos;")
364:   end

[Validate]