If I have a string which may contain any characters (including '/', '&',etc...) how do convert it safely into XML that can be stored like this:
<myelement>mystring</myelement>
Does it need to be CDATA, or can I easily convert it using a ruby function?