SEBSERV-252 fixed CSV export escaping
This commit is contained in:
parent
3a65943bde
commit
bd045b0d03
1 changed files with 5 additions and 1 deletions
|
@ -678,7 +678,11 @@ public final class Utils {
|
|||
if (StringUtils.isBlank(text)) {
|
||||
return StringUtils.EMPTY;
|
||||
}
|
||||
return Constants.DOUBLE_QUOTE + text.replace("\"", "\"\"") + Constants.DOUBLE_QUOTE;
|
||||
return Constants.DOUBLE_QUOTE +
|
||||
text
|
||||
.replace("\r\n", "\n")
|
||||
.replace("\"", "\"\"")
|
||||
+ Constants.DOUBLE_QUOTE;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue