ohler55/ox — pull request #64 by schmurfy (2013-05-22 12:48:37+00:00)
Title: escaping \n and \r

I thought I could do it before passing the value to the generator but sadly that is not so easy xD

```ruby
require 'ox'

str = "line1\nline2"

str.gsub!("\n", '
')

node = Ox::Element.new('name')
node << str

p Ox.dump(node)
=> "\nline1&#10;line2\n"
```

I need to keep the xml on one line so I was looking for a way to escape these two to
and respectively but I can't figure out a way to do so without modifying the gem's code (and even there honestly I am not sure where to look)