escaped texts in XML encoding to support following characters: &, ", < and >. inspired by http://stackoverflow.com/questions/7918868/how-to-escape-xml-entities-in-javascript