method
text
v2_2_9 -
Show latest stable
- Class:
XMLRPC::XMLWriter::Simple
text(txt)public
No documentation available.
# File lib/xmlrpc/create.rb, line 48
def text(txt)
cleaned = txt.dup
cleaned.gsub!(/&/, '&')
cleaned.gsub!(/</, '<')
cleaned.gsub!(/>/, '>')
cleaned
end