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

HTML Format: Should Escape String #51

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/HtmlFormat.java#L197

The HTML format when printing the String should do something like Commons Text StringEscapeUtils.escapeHtml4(text); to escape ampersands and such inside the text.