bivas / protobuf-java-format

Provide serialization and de-serialization of different formats based on Google’s protobuf Message. Enables overriding the default (byte array) output to text based formats such as XML, JSON and HTML.
BSD 3-Clause "New" or "Revised" License
152 stars 97 forks source link

XML Format: Should Escape String #52

Closed melloware closed 11 months ago

melloware commented 5 years ago

On Line: https://github.com/bivas/protobuf-java-format/blob/master/src/main/java/com/googlecode/protobuf/format/XmlFormat.java#L181

Should perform a Commons Text StringEscapeUtils.escapeXml() so it escapes Ampersands and such inside the text.