I'm afraid there is no one-size-fits-all here as we sometime may want to escape some special char to be displayed in the documentation and sometimes not.

In these cases, the best is to add a `defaultValue` in the schema, this will override in the documentation the default value computed from the task default attribute value.

I'll do it for the task referenced here.
[UI] Fix how we display default values in the plugin/task docs
### Feature description

E.g. the `batch.rows` separator is read as an empty line

![image](https://github.com/kestra-io/kestra/assets/86264395/93352bec-d7f7-4e71-b4e2-d00068cf7803)

https://kestra.io/plugins/core/tasks/flows/io.kestra.core.tasks.flows.foreachitem
core/src/main/java/io/kestra/core/storages/StorageSplitInterface.java
core/src/main/java/io/kestra/core/storages/StorageSplitInterface.java
diff --git a/core/src/main/java/io/kestra/core/storages/StorageSplitInterface.java b/core/src/main/java/io/kestra/core/storages/StorageSplitInterface.java
index f5a7e26b99..19b2a470d3 100644
--- a/core/src/main/java/io/kestra/core/storages/StorageSplitInterface.java
+++ b/core/src/main/java/io/kestra/core/storages/StorageSplitInterface.java
@@ -50,7 +50,8 @@ public interface StorageSplitInterface {
     Integer getRows();
 
     @Schema(
-        title = "The separator used to split a file into chunks. By default, it's a newline `\\n` character. If you are on Windows, you might want to use `\\r\\n` instead."
+        title = "The separator used to split a file into chunks. By default, it's a newline `\\n` character. If you are on Windows, you might want to use `\\r\\n` instead.",
+        defaultValue = "\\n"
     )
     @PluginProperty
     String getSeparator();
