Skip to content

Commit

Permalink
Add a XML encoder method to TouteEcrivain
Browse files Browse the repository at this point in the history
  • Loading branch information
computate committed Aug 28, 2023
1 parent e3368a5 commit 6e70198
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/org/computate/frFR/java/ToutEcrivain.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,17 @@ public ToutEcrivain s(Object...objets) {
return this;
}

public ToutEcrivain sx(Object...objets) {
try {
for(Object objet : objets)
if(objet != null)
printWriter.append(StringEscapeUtils.escapeHtml4(objet.toString()));
} catch(Exception ex) {
ExceptionUtils.rethrow(ex);
}
return this;
}

/**
* Param1.var.enUS: objects
* r: objet
Expand Down

0 comments on commit 6e70198

Please sign in to comment.