You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public static String xmlEscape(String input) {
if (input == null) {
return null;
}
// A ordem de substituição é importante para evitar substituições duplas
// Primeiro substituímos '&', para não "bagunçar" as substituições dos outros caracteres.
String escaped = input.replace("&", "&");
// Agora substituímos os demais.
escaped = escaped.replace("<", "<");
escaped = escaped.replace(">", ">");
escaped = escaped.replace("\"", """);
escaped = escaped.replace("'", "'");
return escaped;
}
The text was updated successfully, but these errors were encountered:
I trying to genereate one xlsx file. with a fomrula in a cell a basic formula
but when I open the excel the formula was changed to
and the cell dont show anything until I manually remove the @
this is my code:
ws.formula(dataRowIndex,coluna.getXlsxColumnOrder(),xmlEscape(formula));
and the xmlEscape method
The text was updated successfully, but these errors were encountered: