Escape content for use in XML. @param content The content to escape @return The escaped content converted to String or ? if the content was null
(Object content)
| 93 | * @return The escaped content converted to String or {@code ?} if the content was {@code null} |
| 94 | */ |
| 95 | public static String xml(Object content) { |
| 96 | if (content == null) { |
| 97 | return "?"; |
| 98 | } |
| 99 | return xml(null, false, String.valueOf(content)); |
| 100 | } |
| 101 | |
| 102 | |
| 103 | /** |