Skip to content

Commit

Permalink
[hotfix][docs] correctly escape ampersands
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoK committed Jun 15, 2019
1 parent e5b4a57 commit 9a376ff
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ protected Formatter newInstance() {

private static String escapeCharacters(String value) {
return value
.replaceAll("&", "&")
.replaceAll("<", "&lt;")
.replaceAll(">", "&gt;");
}
Expand Down

0 comments on commit 9a376ff

Please sign in to comment.