OK so I used $xml = HTML::Entities::encode($html, '<>&"\'');insteadAre those a reasonable set of characters ?