Method: Rex::Text.xml_char_encode
- Defined in:
- lib/rex/text.rb
.xml_char_encode(str) ⇒ Object
Encode an ASCII string so it’s safe for XML. It’s a wrapper for to_hex_ascii.
854 855 856 |
# File 'lib/rex/text.rb', line 854 def self.xml_char_encode(str) self.to_hex_ascii(str, "&#x", 1, ";") end |