i am trying to serialize a model into a textfile which works quiet well. The only challange that I am facing is to serialize Strings that contain newlines:
consider the following grammar rule:
If i try to serialize a String like "I want to\nserialize multiline strings" somehow like that:
myElem.value = "I want to\nserialize multiline strings"
unfortunately the serialized text looks like this
String "I want to\nserialize multiline strings"
i would like to achieve this:
String "I want to
serialize multiline strings"
If someone has a hint i would be more than happy.
Thank you in advance
[Updated on: Mon, 13 January 2020 14:11]
Report message to a moderator